Refine various javadoc notes

This commit is contained in:
Juergen Hoeller
2026-06-22 21:52:57 +02:00
parent 7de9c8d58a
commit d0331a049a
7 changed files with 19 additions and 11 deletions
@@ -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