Skip to content

Commit

Permalink
prefer use of InheritableThreadLocal to fix possible issue when mojo …
Browse files Browse the repository at this point in the history
…start a thread and try to access some artifacts

Signed-off-by: Olivier Lamy <olamy@apache.org>
  • Loading branch information
olamy committed Aug 12, 2021
1 parent 865dcaa commit 509aece
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public class MavenProject

private Artifact artifact;

private final ThreadLocal<ArtifactsHolder> threadLocalArtifactsHolder = new ThreadLocal()
private final InheritableThreadLocal<ArtifactsHolder> threadLocalArtifactsHolder = new InheritableThreadLocal()
{
protected ArtifactsHolder initialValue()
{
Expand Down

0 comments on commit 509aece

Please sign in to comment.