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

Comparing jsr166/src/test/loops/ListBash.java (file contents):
Revision 1.16 by jsr166, Thu Jan 15 18:34:19 2015 UTC vs.
Revision 1.17 by jsr166, Sun Oct 23 03:03:23 2016 UTC

# Line 257 | Line 257 | public class ListBash {
257  
258      static List<Integer> newList(Class<?> cl, boolean synch) {
259          try {
260 <            List<Integer> s = (List<Integer>) cl.newInstance();
260 >            List<Integer> s = (List<Integer>) cl.getConstructor().newInstance();
261              if (synch)
262                  s = Collections.synchronizedList(s);
263              if (!s.isEmpty())

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines