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.34 by dl, Sat Jul 20 16:50:12 2013 UTC vs.
Revision 1.35 by jsr166, Sat Jul 20 16:53:40 2013 UTC

# Line 160 | Line 160 | public class ConcurrentHashMapTest exten
160       * can be inserted and found.
161       */
162      public void testMixedComparable() {
163 <        int size = 10000;
164 <        ConcurrentHashMap<Object, Object> map =
163 >        int size = 10000;
164 >        ConcurrentHashMap<Object, Object> map =
165              new ConcurrentHashMap<Object, Object>();
166          Random rng = new Random(1370014958369218000L);
167 <        for(int i = 0; i < size; i++) {
167 >        for (int i = 0; i < size; i++) {
168              Object x;
169 <            switch(rng.nextInt(4)) {
169 >            switch (rng.nextInt(4)) {
170              case 0:
171                  x = new Object();
172                  break;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines