mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-17 16:39:29 +00:00
Refine various javadoc notes
This commit is contained in:
+3
-3
@@ -100,20 +100,20 @@ public class LocalizedResourceHelper {
|
||||
String variant = locale.getVariant();
|
||||
|
||||
// Check for file with language, country and variant localization.
|
||||
if (variant.length() > 0) {
|
||||
if (!variant.isEmpty()) {
|
||||
String location =
|
||||
name + this.separator + lang + this.separator + country + this.separator + variant + extension;
|
||||
resource = this.resourceLoader.getResource(location);
|
||||
}
|
||||
|
||||
// Check for file with language and country localization.
|
||||
if ((resource == null || !resource.exists()) && country.length() > 0) {
|
||||
if ((resource == null || !resource.exists()) && !country.isEmpty()) {
|
||||
String location = name + this.separator + lang + this.separator + country + extension;
|
||||
resource = this.resourceLoader.getResource(location);
|
||||
}
|
||||
|
||||
// Check for document with language localization.
|
||||
if ((resource == null || !resource.exists()) && lang.length() > 0) {
|
||||
if ((resource == null || !resource.exists()) && !lang.isEmpty()) {
|
||||
String location = name + this.separator + lang + extension;
|
||||
resource = this.resourceLoader.getResource(location);
|
||||
}
|
||||
|
||||
@@ -118,7 +118,7 @@ public abstract class FileSystemUtils {
|
||||
|
||||
/**
|
||||
* Recursively copy the contents of the {@code src} file/directory
|
||||
* to the {@code dest} file/directory.
|
||||
* to the {@code dest} file/directory, including symbolic links.
|
||||
* @param src the source directory
|
||||
* @param dest the destination directory
|
||||
* @throws IOException in the case of I/O errors
|
||||
|
||||
Reference in New Issue
Block a user