mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8300133: Use generalized see and link tags in core libs
Reviewed-by: jjg, mchung, naoto, smarks
This commit is contained in:
parent
2a46e07f7d
commit
7bf0d1465e
10 changed files with 88 additions and 107 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -280,10 +280,10 @@ public interface Collection<E> extends Iterable<E> {
|
|||
* element
|
||||
* @throws ClassCastException if the type of the specified element
|
||||
* is incompatible with this collection
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)
|
||||
* ({@linkplain Collection##optional-restrictions optional})
|
||||
* @throws NullPointerException if the specified element is null and this
|
||||
* collection does not permit null elements
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)
|
||||
* ({@linkplain Collection##optional-restrictions optional})
|
||||
*/
|
||||
boolean contains(Object o);
|
||||
|
||||
|
@ -463,10 +463,10 @@ public interface Collection<E> extends Iterable<E> {
|
|||
* @return {@code true} if an element was removed as a result of this call
|
||||
* @throws ClassCastException if the type of the specified element
|
||||
* is incompatible with this collection
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)
|
||||
* ({@linkplain Collection##optional-restrictions optional})
|
||||
* @throws NullPointerException if the specified element is null and this
|
||||
* collection does not permit null elements
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)
|
||||
* ({@linkplain Collection##optional-restrictions optional})
|
||||
* @throws UnsupportedOperationException if the {@code remove} operation
|
||||
* is not supported by this collection
|
||||
*/
|
||||
|
@ -485,11 +485,11 @@ public interface Collection<E> extends Iterable<E> {
|
|||
* @throws ClassCastException if the types of one or more elements
|
||||
* in the specified collection are incompatible with this
|
||||
* collection
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)
|
||||
* ({@linkplain Collection##optional-restrictions optional})
|
||||
* @throws NullPointerException if the specified collection contains one
|
||||
* or more null elements and this collection does not permit null
|
||||
* elements
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>),
|
||||
* ({@linkplain Collection##optional-restrictions optional})
|
||||
* or if the specified collection is null.
|
||||
* @see #contains(Object)
|
||||
*/
|
||||
|
@ -535,11 +535,11 @@ public interface Collection<E> extends Iterable<E> {
|
|||
* @throws ClassCastException if the types of one or more elements
|
||||
* in this collection are incompatible with the specified
|
||||
* collection
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)
|
||||
* ({@linkplain Collection##optional-restrictions optional})
|
||||
* @throws NullPointerException if this collection contains one or more
|
||||
* null elements and the specified collection does not support
|
||||
* null elements
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>),
|
||||
* ({@linkplain Collection##optional-restrictions optional})
|
||||
* or if the specified collection is null
|
||||
* @see #remove(Object)
|
||||
* @see #contains(Object)
|
||||
|
@ -594,11 +594,11 @@ public interface Collection<E> extends Iterable<E> {
|
|||
* @throws ClassCastException if the types of one or more elements
|
||||
* in this collection are incompatible with the specified
|
||||
* collection
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)
|
||||
* ({@linkplain Collection##optional-restrictions optional})
|
||||
* @throws NullPointerException if this collection contains one or more
|
||||
* null elements and the specified collection does not permit null
|
||||
* elements
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>),
|
||||
* ({@linkplain Collection##optional-restrictions optional})
|
||||
* or if the specified collection is null
|
||||
* @see #remove(Object)
|
||||
* @see #contains(Object)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue