From 3b671d07340b002e13775883d09e7f7e0d9a3c49 Mon Sep 17 00:00:00 2001 From: Karl Heinz Marbaise Date: Mon, 29 Dec 2014 14:33:47 +0100 Subject: [PATCH] [MNG-5702] Wrong reactor summary output while using -T option Fixed by using ConcurrentMap instead non synchronized ones. --- .../apache/maven/execution/DefaultMavenExecutionResult.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionResult.java b/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionResult.java index d3d63f9102..55e87cdeec 100644 --- a/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionResult.java +++ b/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionResult.java @@ -20,9 +20,9 @@ package org.apache.maven.execution; */ import java.util.Collections; -import java.util.IdentityHashMap; import java.util.List; import java.util.Map; +import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.CopyOnWriteArrayList; import org.apache.maven.project.DependencyResolutionResult; @@ -42,7 +42,7 @@ public class DefaultMavenExecutionResult private List exceptions = new CopyOnWriteArrayList(); - private Map buildSummaries = Maps.newIdentityHashMap(); + private Map buildSummaries = Maps.newConcurrentMap(); public MavenExecutionResult setProject( MavenProject project ) { @@ -107,7 +107,7 @@ public class DefaultMavenExecutionResult { if ( buildSummaries == null ) { - buildSummaries = new IdentityHashMap(); + buildSummaries = new ConcurrentHashMap(); } buildSummaries.put( summary.getProject(), summary ); }