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:33 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2016-03-15 09:42:33 +0000
commita8a9d448e97004dcd25c9ccb128e09bcb7690f6a (patch)
tree214d4e0cdccf19471194d03dd3172933336910f1 /jsr166-tests/src/test/java/jsr166/ConcurrentHashMapTest.java
parent37f9fec54f50b2e0898ee2b61d058c4de879e38b (diff)
parented4f365789d43b1961657195df223a19bf4ef20f (diff)
Merge "Revert "JSR-166 update""
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);