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.5 by jsr166, Mon Nov 2 23:42:46 2009 UTC vs.
Revision 1.6 by jsr166, Mon Nov 2 23:51:32 2009 UTC

# Line 108 | Line 108 | public class IntMapCheck {
108          timer.start(nm, n * iters);
109          for (int j = 0; j < iters; ++j) {
110              for (int i = 0; i < n; i++) {
111 <                if ((Integer)(s.get(i)) != i) ++sum;
111 >                if ((Integer) (s.get(i)) != i) ++sum;
112              }
113          }
114          timer.finish();
# Line 272 | Line 272 | public class IntMapCheck {
272          reallyAssert (!s.containsKey(k));
273          while (it.hasNext()) {
274              Map.Entry<Integer,Integer> x = (Map.Entry<Integer,Integer>)(it.next());
275 <            Integer k2 = (Integer)x.getKey();
275 >            Integer k2 = (Integer) x.getKey();
276              seen.put(k2, k2);
277              if (k2 != MISSING)
278                  ++sum;
# Line 348 | Line 348 | public class IntMapCheck {
348  
349      static void entest(Map<Integer,Integer> s, int size) {
350          if (s instanceof Hashtable) {
351 <            Hashtable ht = (Hashtable)s;
351 >            Hashtable ht = (Hashtable) s;
352              //            entest3(ht, size);
353              //            entest4(ht, size);
354              entest1(ht, size);
# Line 532 | Line 532 | public class IntMapCheck {
532          static void printStats() {
533              for (Iterator it = accum.entrySet().iterator(); it.hasNext(); ) {
534                  Map.Entry e = (Map.Entry)(it.next());
535 <                Stats stats = ((Stats)(e.getValue()));
535 >                Stats stats = ((Stats) (e.getValue()));
536                  long n = stats.number;
537                  double t;
538                  if (n > 0)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines