Skip to content

Commit c6df3c9

Browse files
committed
8274071: Clean up java.lang.ref comments and documentation
Reviewed-by: rriggs, kbarrett, mchung, iris, lancea
1 parent 71788c6 commit c6df3c9

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/java.base/share/classes/java/lang/ref/Reference.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public abstract class Reference<T> {
134134
* [inactive/unregistered]
135135
*
136136
* Unreachable states (because enqueue also clears):
137-
* [active/enqeued]
137+
* [active/enqueued]
138138
* [active/dequeued]
139139
*
140140
* [1] Unregistered is not permitted for FinalReferences.
@@ -510,8 +510,7 @@ protected Object clone() throws CloneNotSupportedException {
510510
* this method. Invocation of this method does not itself initiate garbage
511511
* collection or finalization.
512512
*
513-
* <p> This method establishes an ordering for
514-
* <a href="package-summary.html#reachability"><em>strong reachability</em></a>
513+
* <p> This method establishes an ordering for <em>strong reachability</em>
515514
* with respect to garbage collection. It controls relations that are
516515
* otherwise only implicit in a program -- the reachability conditions
517516
* triggering garbage collection. This method is designed for use in
@@ -609,7 +608,6 @@ protected Object clone() throws CloneNotSupportedException {
609608
*
610609
* @param ref the reference. If {@code null}, this method has no effect.
611610
* @since 9
612-
* @jls 12.6 Finalization of Class Instances
613611
*/
614612
@ForceInline
615613
public static void reachabilityFence(Object ref) {

0 commit comments

Comments
 (0)