aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/java_tools/junitrunner
diff options
context:
space:
mode:
authorGravatar Chris Povirk <cpovirk@google.com>2016-08-30 18:29:31 +0000
committerGravatar Klaus Aehlig <aehlig@google.com>2016-08-31 08:13:34 +0000
commitd0b5310abbd8126f776501daa6e5281c4484745c (patch)
treef48fee81e572abf47d55621e07576994580033f3 /src/java_tools/junitrunner
parenta217a0d660277ce7ac458aaf6b50220a889deb92 (diff)
Declare field as ConcurrentMap instead of ConcurrentHashMap.
-- MOS_MIGRATED_REVID=131734056
Diffstat (limited to 'src/java_tools/junitrunner')
-rw-r--r--src/java_tools/junitrunner/java/com/google/testing/junit/runner/model/TestCaseNode.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/java_tools/junitrunner/java/com/google/testing/junit/runner/model/TestCaseNode.java b/src/java_tools/junitrunner/java/com/google/testing/junit/runner/model/TestCaseNode.java
index af64e3b2f0..075f7f0b60 100644
--- a/src/java_tools/junitrunner/java/com/google/testing/junit/runner/model/TestCaseNode.java
+++ b/src/java_tools/junitrunner/java/com/google/testing/junit/runner/model/TestCaseNode.java
@@ -26,6 +26,7 @@ import java.util.Map;
import java.util.Queue;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentLinkedQueue;
+import java.util.concurrent.ConcurrentMap;
import javax.annotation.Nullable;
import org.junit.runner.Description;
@@ -37,7 +38,7 @@ class TestCaseNode extends TestNode implements TestPropertyExporter.Callback {
private final Map<String, String> properties = new ConcurrentHashMap<>();
private final Map<String, Integer> repeatedPropertyNamesToRepetitions = new HashMap<>();
private final Queue<Throwable> globalFailures = new ConcurrentLinkedQueue<>();
- private final ConcurrentHashMap<Description, List<Throwable>> dynamicTestToFailures =
+ private final ConcurrentMap<Description, List<Throwable>> dynamicTestToFailures =
new ConcurrentHashMap<>();
@Nullable private volatile TestInterval runTimeInterval = null;
@@ -257,4 +258,4 @@ class TestCaseNode extends TestNode implements TestPropertyExporter.Callback {
return status;
}
}
-} \ No newline at end of file
+}