diff -r a7f16447085e -r 48e480e56aad src/java.base/share/classes/java/lang/ref/Reference.java --- a/src/java.base/share/classes/java/lang/ref/Reference.java Tue Sep 24 10:04:13 2019 +0000 +++ b/src/java.base/share/classes/java/lang/ref/Reference.java Tue Sep 24 09:43:43 2019 +0100 @@ -323,10 +323,10 @@ /** * Returns this reference object's referent. If this reference object has * been cleared, either by the program or by the garbage collector, then - * this method returns null. + * this method returns {@code null}. * * @return The object to which this reference refers, or - * null if this reference object has been cleared + * {@code null} if this reference object has been cleared */ @HotSpotIntrinsicCandidate public T get() { @@ -350,9 +350,9 @@ * Tells whether or not this reference object has been enqueued, either by * the program or by the garbage collector. If this reference object was * not registered with a queue when it was created, then this method will - * always return false. + * always return {@code false}. * - * @return true if and only if this reference object has + * @return {@code true} if and only if this reference object has * been enqueued */ public boolean isEnqueued() { @@ -366,8 +366,8 @@ *

This method is invoked only by Java code; when the garbage collector * enqueues references it does so directly, without invoking this method. * - * @return true if this reference object was successfully - * enqueued; false if it was already enqueued or if + * @return {@code true} if this reference object was successfully + * enqueued; {@code false} if it was already enqueued or if * it was not registered with a queue when it was created */ public boolean enqueue() {