[cvs] / jsr166 / src / test / tck / ArrayDequeTest.java Repository:
ViewVC logotype

Diff of /jsr166/src/test/tck/ArrayDequeTest.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

Legend:
Removed from v.1.44  
changed lines
  Added in v.1.45

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8