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.7 by jsr166, Mon Jul 8 21:17:16 2019 UTC

# Line 95 | Line 95 | public class MapTest extends JSR166TestC
95       */
96      public void testBug8186171() {
97          if (!impl.supportsSetValue()) return;
98 +        if (!atLeastJava10()) return; // jdk9 is abandoned
99          final ThreadLocalRandom rnd = ThreadLocalRandom.current();
100          final boolean permitsNullValues = impl.permitsNullValues();
101          final Object v1 = (permitsNullValues && rnd.nextBoolean())
# Line 180 | Line 181 | public class MapTest extends JSR166TestC
181          final ThreadLocalRandom rnd = ThreadLocalRandom.current();
182          final int size = rnd.nextInt(4);
183          final Map map = impl.emptyMap();
184 <        for (int i = size; i--> 0; )
184 >        for (int i = 0; i < size; i++)
185              map.put(impl.makeKey(i), impl.makeValue(i));
186          final Map clone = cloneableClone(map);
187          if (clone == null) return;      // not cloneable?

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines