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.14 by jsr166, Sun Jul 14 22:29:33 2013 UTC vs.
Revision 1.15 by jsr166, Thu Dec 18 18:43:22 2014 UTC

# Line 12 | Line 12 | public class ListBash {
12      static int numItr;
13      static int listSize;
14      static boolean synch;
15 <    static Class cl;
15 >    static Class<?> cl;
16  
17      public static void main(String[] args) {
18          numItr = Integer.parseInt(args[1]);
# Line 240 | Line 240 | public class ListBash {
240      }
241  
242      // Done inefficiently so as to exercise toArray
243 <    static List<Integer> clone(List s, Class cl, boolean synch) {
243 >    static List<Integer> clone(List s, Class<?> cl, boolean synch) {
244          List a = Arrays.asList(s.toArray());
245          if (s.hashCode() != a.hashCode())
246              fail("Incorrect hashCode computation.");
# Line 257 | Line 257 | public class ListBash {
257          return (List<Integer>) clone;
258      }
259  
260 <    static List<Integer> newList(Class cl, boolean synch) {
260 >    static List<Integer> newList(Class<?> cl, boolean synch) {
261          try {
262              List<Integer> s = (List<Integer>) cl.newInstance();
263              if (synch)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines