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

Comparing jsr166/src/test/loops/SetBash.java (file contents):
Revision 1.8 by jsr166, Sun Jul 14 22:29:33 2013 UTC vs.
Revision 1.9 by jsr166, Thu Dec 18 18:43:22 2014 UTC

# Line 11 | Line 11 | public class SetBash {
11      public static void main(String[] args) {
12          int numItr = Integer.parseInt(args[1]);
13          int setSize = Integer.parseInt(args[2]);
14 <        Class cl = null;
14 >        Class<?> cl = null;
15  
16          try {
17              cl = Class.forName(args[0]);
# Line 78 | Line 78 | public class SetBash {
78      }
79  
80      // Done inefficiently so as to exercise toArray
81 <    static Set clone(Set s, Class cl, boolean synch) {
81 >    static Set clone(Set s, Class<?> cl, boolean synch) {
82          Set clone = newSet(cl, synch);
83          clone.addAll(Arrays.asList(s.toArray()));
84          if (!s.equals(clone))
# Line 90 | Line 90 | public class SetBash {
90          return clone;
91      }
92  
93 <    static Set newSet(Class cl, boolean synch) {
93 >    static Set newSet(Class<?> cl, boolean synch) {
94          try {
95              Set s = (Set) cl.newInstance();
96              if (synch)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines