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

Comparing jsr166/src/test/loops/IteratorLoops.java (file contents):
Revision 1.13 by jsr166, Mon Aug 10 07:24:02 2015 UTC vs.
Revision 1.14 by jsr166, Sun Oct 23 03:03:23 2016 UTC

# Line 35 | Line 35 | public final class IteratorLoops {
35              (Collection<Integer>[])new Collection<?>[NC];
36  
37          for (int k = 0; k < colls.length; ++k) {
38 <            Object x = klass.newInstance();
38 >            Object x = klass.getConstructor().newInstance();
39              if (x instanceof Collection)
40                  colls[k] = (Collection<Integer>) x;
41              else if (x instanceof Map)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines