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

Comparing jsr166/src/test/loops/DequeBash.java (file contents):
Revision 1.14 by jsr166, Sun Oct 23 01:41:32 2016 UTC vs.
Revision 1.15 by jsr166, Sun Oct 23 02:21:56 2016 UTC

# Line 38 | Line 38 | public class DequeBash {
38          long startTime = System.nanoTime();
39          for (int j = 0; j < 200; ++j) {
40              @SuppressWarnings("unchecked")
41 <            Deque<Integer> deque = (Deque<Integer>) cls.newInstance();
41 >            Deque<Integer> deque =
42 >                (Deque<Integer>) cls.getConstructor().newInstance();
43              nextTail =  0;
44              nextHead = -1;
45              mainTest(deque, (random() & ((1 << 20) - 1)));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines