This is an automated email from the ASF dual-hosted git repository. gnodet pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-resolver.git
commit 0a138b386053560121a48873b6004d4339f9cb02 Author: Guillaume Nodet <[email protected]> AuthorDate: Sun Jun 7 06:42:12 2026 +0000 Fix SimpleArtifactTypeRegistry — use ConcurrentHashMap F-16: Replace plain HashMap with ConcurrentHashMap to ensure visibility of types populated on the main thread to worker threads querying via the session. --- .../org/eclipse/aether/util/artifact/SimpleArtifactTypeRegistry.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maven-resolver-util/src/main/java/org/eclipse/aether/util/artifact/SimpleArtifactTypeRegistry.java b/maven-resolver-util/src/main/java/org/eclipse/aether/util/artifact/SimpleArtifactTypeRegistry.java index 65378f456..fd12a6435 100644 --- a/maven-resolver-util/src/main/java/org/eclipse/aether/util/artifact/SimpleArtifactTypeRegistry.java +++ b/maven-resolver-util/src/main/java/org/eclipse/aether/util/artifact/SimpleArtifactTypeRegistry.java @@ -18,8 +18,8 @@ */ package org.eclipse.aether.util.artifact; -import java.util.HashMap; import java.util.Map; +import java.util.concurrent.ConcurrentHashMap; import org.eclipse.aether.artifact.ArtifactType; import org.eclipse.aether.artifact.ArtifactTypeRegistry; @@ -36,7 +36,7 @@ class SimpleArtifactTypeRegistry implements ArtifactTypeRegistry { * to populate the registry. */ SimpleArtifactTypeRegistry() { - types = new HashMap<>(); + types = new ConcurrentHashMap<>(); } /**
