Skip to content

Commit

Permalink
Fixing checkstyle errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanjbaxter committed Oct 18, 2024
1 parent 3c8e0a0 commit 36c190e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import java.util.Collection;
import java.util.HashMap;
import java.util.LinkedHashSet;
import java.util.Locale;
import java.util.Map;
import java.util.Set;
import java.util.function.Function;
Expand Down Expand Up @@ -120,7 +121,7 @@ private void addPropertySourcesFromPaths(Environment environment, CompositePrope
}).toList().forEach(p -> {
try {
String content = new String(Files.readAllBytes(p)).trim();
String filename = p.toAbsolutePath().toString().toLowerCase();
String filename = p.toAbsolutePath().toString().toLowerCase(Locale.ROOT);
if (filename.endsWith(".properties")) {
addPropertySourceIfNeeded(c -> PROPERTIES_TO_MAP.apply(KEY_VALUE_TO_PROPERTIES.apply(c)), content,
filename, composite);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import java.util.EnumSet;
import java.util.HashSet;
import java.util.List;
import java.util.Locale;
import java.util.Objects;
import java.util.Set;
import java.util.function.BiConsumer;
Expand Down Expand Up @@ -177,7 +178,7 @@ private SecretsPropertySource property(Path filePath) {

try {
String content = new String(Files.readAllBytes(filePath)).trim();
String sourceName = fileName.toLowerCase();
String sourceName = fileName.toLowerCase(Locale.ROOT);
SourceData sourceData = new SourceData(sourceName, Collections.singletonMap(fileName, content));
return new SecretsPropertySource(sourceData);
}
Expand Down

0 comments on commit 36c190e

Please sign in to comment.