ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/ConcurrentHashMapTest.java
(Generate patch)

Comparing jsr166/src/test/tck/ConcurrentHashMapTest.java (file contents):
Revision 1.31 by jsr166, Thu May 30 03:28:55 2013 UTC vs.
Revision 1.32 by jsr166, Wed Jun 12 18:09:00 2013 UTC

# Line 84 | Line 84 | public class ConcurrentHashMapTest exten
84       * class are found.
85       */
86      public void testComparableFamily() {
87 <        ConcurrentHashMap<BI, Boolean> m = new ConcurrentHashMap<>();
87 >        ConcurrentHashMap<BI, Boolean> m =
88 >            new ConcurrentHashMap<BI, Boolean>();
89          for (int i = 0; i < 1000; i++) {
90              assertTrue(m.put(new CI(i), true) == null);
91          }
# Line 99 | Line 100 | public class ConcurrentHashMapTest exten
100       * on Comparable can be inserted and found.
101       */
102      public void testGenericComparable() {
103 <        ConcurrentHashMap<Object, Boolean> m = new ConcurrentHashMap<>();
103 >        ConcurrentHashMap<Object, Boolean> m =
104 >            new ConcurrentHashMap<Object, Boolean>();
105          for (int i = 0; i < 1000; i++) {
106              BI bi = new BI(i);
107              BS bs = new BS(String.valueOf(i));
# Line 122 | Line 124 | public class ConcurrentHashMapTest exten
124       * inserted and found.
125       */
126      public void testGenericComparable2() {
127 <        ConcurrentHashMap<Object, Boolean> m = new ConcurrentHashMap<>();
127 >        ConcurrentHashMap<Object, Boolean> m =
128 >            new ConcurrentHashMap<Object, Boolean>();
129          for (int i = 0; i < 1000; i++) {
130              m.put(new ArrayList(Collections.singleton(new BI(i))), true);
131          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines