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

Comparing jsr166/src/test/tck/AbstractQueueTest.java (file contents):
Revision 1.1 by dl, Sat Jan 10 20:37:20 2004 UTC vs.
Revision 1.2 by jsr166, Mon Nov 2 20:28:31 2009 UTC

# Line 2 | Line 2
2   * Written by Doug Lea with assistance from members of JCP JSR-166
3   * Expert Group and released to the public domain, as explained at
4   * http://creativecommons.org/licenses/publicdomain
5 < * Other contributors include Andrew Wright, Jeffrey Hayes,
6 < * Pat Fisher, Mike Judd.
5 > * Other contributors include Andrew Wright, Jeffrey Hayes,
6 > * Pat Fisher, Mike Judd.
7   */
8  
9  
# Line 22 | Line 22 | public class AbstractQueueTest extends J
22      }
23  
24      static class Succeed extends AbstractQueue<Integer> {
25 <        public boolean offer(Integer x) {
25 >        public boolean offer(Integer x) {
26              if (x == null) throw new NullPointerException();
27 <            return true;
27 >            return true;
28          }
29          public Integer peek() { return one; }
30          public Integer poll() { return one; }
# Line 33 | Line 33 | public class AbstractQueueTest extends J
33      }
34  
35      static class Fail extends AbstractQueue<Integer> {
36 <        public boolean offer(Integer x) {
36 >        public boolean offer(Integer x) {
37              if (x == null) throw new NullPointerException();
38 <            return false;
38 >            return false;
39          }
40          public Integer peek() { return null; }
41          public Integer poll() { return null; }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines