Skip to content

Commit

Permalink
Synchronize accesses to ApplicationArchivesBuildItem#allArchives
Browse files Browse the repository at this point in the history
Avoids race reported in
quarkusio#43138

Closes quarkusio#43138
  • Loading branch information
zakkak committed Sep 9, 2024
1 parent d2e8074 commit f017783
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public Collection<ApplicationArchive> getApplicationArchives() {
/**
* @return A set of all application archives, including the root archive
*/
public Set<ApplicationArchive> getAllApplicationArchives() {
synchronized public Set<ApplicationArchive> getAllApplicationArchives() {
if (allArchives == null) {
HashSet<ApplicationArchive> ret = new HashSet<>(applicationArchives);
ret.add(root);
Expand Down

0 comments on commit f017783

Please sign in to comment.