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

Comparing jsr166/src/test/loops/MapLoops.java (file contents):
Revision 1.10 by jsr166, Thu Dec 18 18:13:06 2014 UTC vs.
Revision 1.11 by jsr166, Thu Dec 18 18:43:22 2014 UTC

# Line 20 | Line 20 | public class MapLoops {
20  
21      public static void main(String[] args) throws Exception {
22  
23 <        Class mapClass = null;
23 >        Class<?> mapClass = null;
24          if (args.length > 0) {
25              try {
26                  mapClass = Class.forName(args[0]);
# Line 96 | Line 96 | public class MapLoops {
96          }
97      }
98  
99 <    static void test(int i, int nkeys, Class mapClass) throws Exception {
99 >    static void test(int i, int nkeys, Class<?> mapClass) throws Exception {
100          System.out.print("Threads: " + i + "\t:");
101          Map<Integer, Integer> map = (Map<Integer,Integer>)mapClass.newInstance();
102          Integer[] key = makeKeys(nkeys);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines