[lworld] RFR: 8294797: [lworld] update javadoc to remove references to primitive classes

Roger Riggs rriggs at openjdk.org
Thu Oct 6 16:40:34 UTC 2022


On Tue, 4 Oct 2022 20:08:58 GMT, Mandy Chung <mchung at openjdk.org> wrote:

> This reverts the javadoc changes for primitive classes and a couple leftover changes due to the previous design that is no longer applicable.

src/java.base/share/classes/java/lang/ref/PhantomReference.java line 94:

> 92:      * @param q the queue with which the reference is to be registered,
> 93:      *          or {@code null} if registration is not required
> 94:      * @throws IdentityException if the referent is an instance of an

Instead this should refer to isIdentity(), the implementation uses Objects.isIdentityObject(referent).
Perhaps:
@throws IdentityException if the referent is not an {@link Objects#isIdentityObject(Object o) identity object}.

The same applied to SoftReference and WeakReference. (below)

-------------

PR: https://git.openjdk.org/valhalla/pull/776



More information about the valhalla-dev mailing list