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; |
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 |
|
} |