Skip to content

Commit d1ba9ed

Browse files
committed
Typo correction
Signed-off-by: BoykoAlex <[email protected]>
1 parent 528cba7 commit d1ba9ed

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

headless-services/spring-boot-language-server/src/main/java/org/springframework/ide/vscode/boot/java/data/DataRepositoryAotMetadataService.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import java.io.BufferedReader;
1414
import java.io.IOException;
1515
import java.lang.reflect.Type;
16+
import java.net.URI;
1617
import java.nio.file.Files;
1718
import java.nio.file.Path;
1819
import java.nio.file.Paths;
@@ -23,6 +24,7 @@
2324
import java.util.concurrent.CompletionException;
2425
import java.util.concurrent.ConcurrentHashMap;
2526
import java.util.concurrent.ConcurrentMap;
27+
import java.util.stream.Collectors;
2628

2729
import org.slf4j.Logger;
2830
import org.slf4j.LoggerFactory;
@@ -106,15 +108,15 @@ public DataRepositoryAotMetadataService(SimpleLanguageServer server, FileObserve
106108
if (fileObserver != null) {
107109
fileObserver.onAnyChange(List.of("**/spring-aot/main/resources/**/*.json"), changedFiles -> {
108110
List<Path> removedEntries = new ArrayList<>();
109-
for (String filePath : changedFiles) {
110-
Path path = Path.of(filePath);
111+
for (String fileUri : changedFiles) {
112+
Path path = Paths.get(URI.create(fileUri));
111113
Optional<DataRepositoryAotMetadata> removed = metadataCache.remove(path);
112114
if (removed != null) {
113115
removedEntries.add(path);
114116
}
115117
}
116118
if (!removedEntries.isEmpty()) {
117-
119+
log.info("Spring AOT Metadata refreshed: %s".formatted(removedEntries.stream().map(p -> p.toString()).collect(Collectors.joining(", "))));
118120
}
119121
});
120122
}

0 commit comments

Comments
 (0)