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.12 by jsr166, Mon Aug 10 03:13:33 2015 UTC vs.
Revision 1.13 by jsr166, Sun Oct 23 03:03:23 2016 UTC

# Line 117 | Line 117 | public class ConcurrentDequeLoops {
117      }
118  
119      static void oneRun(Class<?> klass, int n, int items) throws Exception {
120 <        Deque<Integer> q = (Deque<Integer>) klass.newInstance();
120 >        Deque<Integer> q =
121 >            (Deque<Integer>) klass.getConstructor().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