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

Comparing jsr166/src/test/tck/MapTest.java (file contents):
Revision 1.5 by jsr166, Wed Apr 24 17:29:50 2019 UTC vs.
Revision 1.6 by jsr166, Mon Apr 29 14:24:37 2019 UTC

# Line 180 | Line 180 | public class MapTest extends JSR166TestC
180          final ThreadLocalRandom rnd = ThreadLocalRandom.current();
181          final int size = rnd.nextInt(4);
182          final Map map = impl.emptyMap();
183 <        for (int i = size; i--> 0; )
183 >        for (int i = 0; i < size; i++)
184              map.put(impl.makeKey(i), impl.makeValue(i));
185          final Map clone = cloneableClone(map);
186          if (clone == null) return;      // not cloneable?

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines