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

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

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

revision 1.42, Mon Oct 17 00:56:11 2016 UTC revision 1.44, Wed Jan 4 06:09:58 2017 UTC
# Line 28  Line 28 
28              public boolean isConcurrent() { return false; }              public boolean isConcurrent() { return false; }
29              public boolean permitsNulls() { return true; }              public boolean permitsNulls() { return true; }
30          }          }
31          return newTestSuite(LinkedListTest.class,          class SubListImplementation extends Implementation {
32                              CollectionTest.testSuite(new Implementation()));              public Collection emptyCollection() {
33                    return new LinkedList().subList(0, 0);
34                }
35            }
36            return newTestSuite(
37                    LinkedListTest.class,
38                    CollectionTest.testSuite(new Implementation()),
39                    CollectionTest.testSuite(new SubListImplementation()));
40      }      }
41    
42      /**      /**
# Line 37  Line 44 
44       * Integers 0 ... n - 1.       * Integers 0 ... n - 1.
45       */       */
46      private LinkedList<Integer> populatedQueue(int n) {      private LinkedList<Integer> populatedQueue(int n) {
47          LinkedList<Integer> q = new LinkedList<Integer>();          LinkedList<Integer> q = new LinkedList<>();
48          assertTrue(q.isEmpty());          assertTrue(q.isEmpty());
49          for (int i = 0; i < n; ++i)          for (int i = 0; i < n; ++i)
50              assertTrue(q.offer(new Integer(i)));              assertTrue(q.offer(new Integer(i)));

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

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8