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

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

# Line 22 | Line 22 | public class IntMapCheck {
22      }
23  
24      public static void main(String[] args) throws Exception {
25 <        Class mapClass = java.util.concurrent.ConcurrentHashMap.class;
25 >        Class<?> mapClass = java.util.concurrent.ConcurrentHashMap.class;
26          int numTests = 50;
27          int size = 75000;
28  
# Line 73 | Line 73 | public class IntMapCheck {
73              stest(newMap(mapClass), size);
74      }
75  
76 <    static Map<Integer,Integer> newMap(Class cl) {
76 >    static Map<Integer,Integer> newMap(Class<?> cl) {
77          try {
78              Map m = (Map<Integer,Integer>)cl.newInstance();
79              return m;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines