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

Comparing jsr166/src/test/loops/ConcurrentDequeLoops.java (file contents):
Revision 1.3 by jsr166, Thu Oct 29 23:09:07 2009 UTC vs.
Revision 1.5 by jsr166, Mon Nov 2 23:51:32 2009 UTC

# Line 22 | Line 22 | public class ConcurrentDequeLoops {
22          if (args.length > 0) {
23              try {
24                  klass = Class.forName(args[0]);
25 <            } catch(ClassNotFoundException e) {
25 >            } catch (ClassNotFoundException e) {
26                  throw new RuntimeException("Class " + args[0] + " not found.");
27              }
28          }
# Line 118 | Line 118 | public class ConcurrentDequeLoops {
118      }
119  
120      static void oneRun(Class klass, int n, int items) throws Exception {
121 <        Deque<Integer> q = (Deque<Integer>)klass.newInstance();
121 >        Deque<Integer> q = (Deque<Integer>) klass.newInstance();
122          LoopHelpers.BarrierTimer timer = new LoopHelpers.BarrierTimer();
123          CyclicBarrier barrier = new CyclicBarrier(n + 1, timer);
124          totalItems = new AtomicInteger(n * items);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines