Skip to content

Commit

Permalink
Merge pull request #1004 from citrusframework/issue/1003/synchronize_…
Browse files Browse the repository at this point in the history
…zip_entries_array

fix(#1003): Synchronize access to the zipEntries array cache
  • Loading branch information
bbortt committed Sep 27, 2023
2 parents 06c3c3b + d51ec57 commit 25f0913
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -9,6 +9,7 @@
import java.net.URL;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
Expand Down Expand Up @@ -51,7 +52,7 @@ public class ResourcePathTypeResolver implements TypeResolver {
private final String resourceBasePath;

/** Zip entries as String, so the archive is read only once */
private final List<String> zipEntriesAsString = new ArrayList<>();
private final List<String> zipEntriesAsString = Collections.synchronizedList(new ArrayList<>());

/**
* Default constructor using META-INF resource base path.
Expand Down

0 comments on commit 25f0913

Please sign in to comment.