diff options
author | mduigou <none@none> | 2011-04-20 17:20:00 -0700 |
---|---|---|
committer | mduigou <none@none> | 2011-04-20 17:20:00 -0700 |
commit | dec6b7b53c13e25b2e534ff2d0c82b1abcb6a81a (patch) | |
tree | 38faecab1743561b1be5757e99c9a58fb66f2603 /src/share/classes/java/util/Vector.java | |
parent | df9d609d0a9cffb612551579d0c17d67f2f1ca32 (diff) | |
download | jdk8u_jdk-dec6b7b53c13e25b2e534ff2d0c82b1abcb6a81a.tar.gz |
6546713: link the word (optional) in exception specifications to the text which provides explanation and context.
Reviewed-by: dholmes, dl
Diffstat (limited to 'src/share/classes/java/util/Vector.java')
-rw-r--r-- | src/share/classes/java/util/Vector.java | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/share/classes/java/util/Vector.java b/src/share/classes/java/util/Vector.java index 0c89889b19..0d69591abc 100644 --- a/src/share/classes/java/util/Vector.java +++ b/src/share/classes/java/util/Vector.java @@ -893,10 +893,13 @@ public class Vector<E> * @return true if this Vector changed as a result of the call * @throws ClassCastException if the types of one or more elements * in this vector are incompatible with the specified - * collection (optional) + * collection + * (<a href="Collection.html#optional-restrictions">optional</a>) * @throws NullPointerException if this vector contains one or more null * elements and the specified collection does not support null - * elements (optional), or if the specified collection is null + * elements + * (<a href="Collection.html#optional-restrictions">optional</a>), + * or if the specified collection is null * @since 1.2 */ public synchronized boolean removeAll(Collection<?> c) { @@ -913,10 +916,13 @@ public class Vector<E> * @return true if this Vector changed as a result of the call * @throws ClassCastException if the types of one or more elements * in this vector are incompatible with the specified - * collection (optional) + * collection + * (<a href="Collection.html#optional-restrictions">optional</a>) * @throws NullPointerException if this vector contains one or more null * elements and the specified collection does not support null - * elements (optional), or if the specified collection is null + * elements + * (<a href="Collection.html#optional-restrictions">optional</a>), + * or if the specified collection is null * @since 1.2 */ public synchronized boolean retainAll(Collection<?> c) { |