summaryrefslogtreecommitdiff
path: root/jsr166-tests/src/test/java/jsr166/ConcurrentHashMapTest.java
diff options
context:
space:
mode:
authorPrzemyslaw Szczepaniak <pszczepaniak@google.com>2016-03-15 09:42:19 +0000
committerPrzemyslaw Szczepaniak <pszczepaniak@google.com>2016-03-15 09:42:19 +0000
commited4f365789d43b1961657195df223a19bf4ef20f (patch)
tree214d4e0cdccf19471194d03dd3172933336910f1 /jsr166-tests/src/test/java/jsr166/ConcurrentHashMapTest.java
parent5328e07d282bef36ac8b757bbee16a761415b2c4 (diff)
Revert "JSR-166 update"
I missed comments on framework/base change regarding "@since 9" parts This reverts commit 5328e07d282bef36ac8b757bbee16a761415b2c4. Change-Id: Iff71b8a17e79a0a5c1ecadc05bccadceabb83393
Diffstat (limited to 'jsr166-tests/src/test/java/jsr166/ConcurrentHashMapTest.java')
-rw-r--r--jsr166-tests/src/test/java/jsr166/ConcurrentHashMapTest.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/jsr166-tests/src/test/java/jsr166/ConcurrentHashMapTest.java b/jsr166-tests/src/test/java/jsr166/ConcurrentHashMapTest.java
index f4271279bf..4650f4140b 100644
--- a/jsr166-tests/src/test/java/jsr166/ConcurrentHashMapTest.java
+++ b/jsr166-tests/src/test/java/jsr166/ConcurrentHashMapTest.java
@@ -30,7 +30,7 @@ public class ConcurrentHashMapTest extends JSR166TestCase {
// main(suite(), args);
// }
// public static Test suite() {
- // return new TestSuite(ConcurrentHashMapTest.class);
+ // return new TestSuite(...);
// }
/**
@@ -50,9 +50,7 @@ public class ConcurrentHashMapTest extends JSR166TestCase {
}
/** Re-implement Integer.compare for old java versions */
- static int compare(int x, int y) {
- return (x < y) ? -1 : (x > y) ? 1 : 0;
- }
+ static int compare(int x, int y) { return x < y ? -1 : x > y ? 1 : 0; }
// classes for testing Comparable fallbacks
static class BI implements Comparable<BI> {
@@ -540,7 +538,7 @@ public class ConcurrentHashMapTest extends JSR166TestCase {
/**
* Constructor (initialCapacity, loadFactor) throws
* IllegalArgumentException if either argument is negative
- */
+ */
public void testConstructor2() {
try {
new ConcurrentHashMap(-1, .75f);