diff --git a/src/java.base/share/classes/java/lang/Double.java b/src/java.base/share/classes/java/lang/Double.java
index 9b11964d9e6..e789a677717 100644
--- a/src/java.base/share/classes/java/lang/Double.java
+++ b/src/java.base/share/classes/java/lang/Double.java
@@ -148,7 +148,7 @@ import jdk.internal.vm.annotation.IntrinsicCandidate;
* relations that can be defined over floating-point values:
*
*
- * - numerical equality ({@code ==}
+ *
- {@index "numerical equality"} ({@code ==}
* operator): (Not an equivalence relation)
* - Two floating-point values represent the same extended real
* number. The extended real numbers are the real numbers augmented
@@ -158,7 +158,7 @@ import jdk.internal.vm.annotation.IntrinsicCandidate;
* number and is not equal to any value, including itself.
*
*
- * - bit-wise equivalence:
+ * - {@index "bit-wise equivalence"}:
* - The bits of the two floating-point values are the same. This
* equivalence relation for {@code double} values {@code a} and {@code
* b} is implemented by the expression
@@ -168,7 +168,7 @@ import jdk.internal.vm.annotation.IntrinsicCandidate;
* is distinguished from every other bit pattern encoding a NaN.
*
*
- * - representation equivalence:
+ * - {@index "representation equivalence"}:
* - The two floating-point values represent the same IEEE 754
* datum. In particular, for {@linkplain #isFinite(double)
* finite} values, the sign, {@linkplain Math#getExponent(double)
diff --git a/src/java.base/share/classes/java/lang/Object.java b/src/java.base/share/classes/java/lang/Object.java
index d9813df57a4..7909f053042 100644
--- a/src/java.base/share/classes/java/lang/Object.java
+++ b/src/java.base/share/classes/java/lang/Object.java
@@ -109,7 +109,7 @@ public class Object {
/**
* Indicates whether some other object is "equal to" this one.
*
- * The {@code equals} method implements an equivalence relation
+ * The {@code equals} method implements an {@index "equivalence relation"}
* on non-null object references:
*
* - It is reflexive: for any non-null reference value