Skip to content

Commit

Permalink
fix(#1003): Synchronize access to the zipEntries array cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Thorsten Schlathoelter committed Sep 26, 2023
1 parent 06c3c3b commit 3b74b5e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ private Stream<Resource> resolveAllFromJar(String path) {
return Stream.of();
}

private List<String> getZipEntries() {
private synchronized List<String> getZipEntries() {
if (zipEntriesAsString.isEmpty()) {
URL root = ResourcePathTypeResolver.class.getProtectionDomain().getCodeSource().getLocation();
try (ZipInputStream in = new ZipInputStream(root.openStream())) {
Expand Down

0 comments on commit 3b74b5e

Please sign in to comment.