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.21 by dl, Sun Oct 19 13:38:29 2003 UTC vs.
Revision 1.24 by dl, Sat Dec 27 19:26:15 2003 UTC

# Line 1 | Line 1
1   /*
2   * Written by Doug Lea with assistance from members of JCP JSR-166
3 < * Expert Group and released to the public domain. Use, modify, and
4 < * redistribute this code in any way without acknowledgement.
3 > * Expert Group and released to the public domain, as explained at
4 > * http://creativecommons.org/licenses/publicdomain
5   */
6  
7   package java.util;
# Line 121 | Line 121 | public abstract class AbstractQueue<E>
121       * @param c collection whose elements are to be added to this collection.
122       * @return <tt>true</tt> if this collection changed as a result of the
123       *         call.
124 <     * @throws NullPointerException if the specified collection, or
124 >     * @throws NullPointerException if the specified collection or
125       * any of its elements are null.
126       * @throws IllegalArgumentException if c is this queue.
127       *
# Line 132 | Line 132 | public abstract class AbstractQueue<E>
132              throw new NullPointerException();
133          if (c == this)
134              throw new IllegalArgumentException();
135 <        boolean modified = false;
136 <        Iterator<? extends E> e = c.iterator();
137 <        while (e.hasNext()) {
138 <            if (add(e.next()))
139 <                modified = true;
140 <        }
141 <        return modified;
135 >        boolean modified = false;
136 >        Iterator<? extends E> e = c.iterator();
137 >        while (e.hasNext()) {
138 >            if (add(e.next()))
139 >                modified = true;
140 >        }
141 >        return modified;
142      }
143  
144   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines