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

Comparing jsr166/src/test/tck/ArrayDequeTest.java (file contents):
Revision 1.44 by jsr166, Mon Oct 17 01:34:10 2016 UTC vs.
Revision 1.45 by jsr166, Mon Oct 17 01:57:00 2016 UTC

# Line 27 | Line 27 | public class ArrayDequeTest extends JSR1
27      public static Test suite() {
28          class Implementation implements CollectionImplementation {
29              public Class<?> klazz() { return ArrayDeque.class; }
30 <            public Collection emptyCollection() { return new ArrayDeque(); }
30 >            public Collection emptyCollection() { return populatedDeque(0); }
31              public Object makeElement(int i) { return i; }
32              public boolean isConcurrent() { return false; }
33              public boolean permitsNulls() { return false; }
# Line 40 | Line 40 | public class ArrayDequeTest extends JSR1
40       * Returns a new deque of given size containing consecutive
41       * Integers 0 ... n - 1.
42       */
43 <    private ArrayDeque<Integer> populatedDeque(int n) {
43 >    private static ArrayDeque<Integer> populatedDeque(int n) {
44          // Randomize various aspects of memory layout, including
45          // filled-to-capacity and wraparound.
46          final ArrayDeque<Integer> q;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines