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.13 by jsr166, Wed Dec 31 17:00:58 2014 UTC

# Line 7 | Line 7
7   * @test
8   * @synopsis Times and checks basic map operations
9   */
10 import java.util.*;
10   import java.io.*;
11 + import java.util.*;
12  
13   public class IntMapCheck {
14      static int absentSize;
# 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