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

Comparing jsr166/src/test/loops/IteratorLoops.java (file contents):
Revision 1.4 by dl, Fri Oct 23 19:57:06 2009 UTC vs.
Revision 1.5 by jsr166, Mon Nov 2 23:42:46 2009 UTC

# Line 24 | Line 24 | public final class IteratorLoops {
24  
25      public static void main(String[] args) throws Exception {
26          Class klass = Class.forName(args[0]);
27 <        int n = (args.length <= 1)? DEFAULT_SIZE : Integer.parseInt(args[1]);
28 <        int t = (args.length <= 2)? DEFAULT_TRIALS : Integer.parseInt(args[2]);
27 >        int n = (args.length <= 1) ? DEFAULT_SIZE : Integer.parseInt(args[1]);
28 >        int t = (args.length <= 2) ? DEFAULT_TRIALS : Integer.parseInt(args[2]);
29  
30          System.out.print("Class: " + klass.getName());
31          System.out.print(" ~iters: " + (long)n * (long)n);
# Line 119 | Line 119 | public final class IteratorLoops {
119              k >>>= 1;
120          }
121          // let GC settle down
122 <        try { Thread.sleep(500); } catch(Exception ex) { return; }
122 >        try { Thread.sleep(500); }
123 >        catch (Exception ex) { return; }
124      }
125  
126  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines