ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/AbstractQueue.java
(Generate patch)

Comparing jsr166/src/main/java/util/AbstractQueue.java (file contents):
Revision 1.26 by jsr166, Tue Apr 26 19:54:03 2005 UTC vs.
Revision 1.27 by jsr166, Mon May 2 08:35:49 2005 UTC

# Line 49 | Line 49 | public abstract class AbstractQueue<E>
49       * returns <tt>true</tt> if <tt>offer</tt> succeeds, else
50       * throws an IllegalStateException.
51       *
52 <     * @param o the element
52 >     * @param e the element
53       * @return <tt>true</tt> (as per the general contract of
54       *         <tt>Collection.add</tt>).
55       *
56       * @throws NullPointerException if the specified element is <tt>null</tt>.
57       * @throws IllegalStateException if the element cannot be added.
58       */
59 <    public boolean add(E o) {
60 <        if (offer(o))
59 >    public boolean add(E e) {
60 >        if (offer(e))
61              return true;
62          else
63              throw new IllegalStateException("Queue full");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines