From 8a69893e1d01f27b0be65cca69601856c1e54e98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eirik=20Bj=C3=B8rsn=C3=B8s?= Date: Sat, 9 Nov 2024 05:53:16 +0000 Subject: [PATCH] 8343819: Link Float.NaN and Double.NaN to equivalence discussion in Double Reviewed-by: darcy --- src/java.base/share/classes/java/lang/Double.java | 6 +++--- src/java.base/share/classes/java/lang/Float.java | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/java.base/share/classes/java/lang/Double.java b/src/java.base/share/classes/java/lang/Double.java index ed23f7d39c9..8f7b6c6aa42 100644 --- a/src/java.base/share/classes/java/lang/Double.java +++ b/src/java.base/share/classes/java/lang/Double.java @@ -375,9 +375,9 @@ public final class Double extends Number public static final double NEGATIVE_INFINITY = -1.0 / 0.0; /** - * A constant holding a Not-a-Number (NaN) value of type - * {@code double}. It is equivalent to the value returned by - * {@code Double.longBitsToDouble(0x7ff8000000000000L)}. + * A constant holding a Not-a-Number (NaN) value of type {@code double}. + * It is {@linkplain Double##equivalenceRelation equivalent} to the + * value returned by {@code Double.longBitsToDouble(0x7ff8000000000000L)}. */ public static final double NaN = 0.0d / 0.0; diff --git a/src/java.base/share/classes/java/lang/Float.java b/src/java.base/share/classes/java/lang/Float.java index 821a05fa00a..85b20e6a2e1 100644 --- a/src/java.base/share/classes/java/lang/Float.java +++ b/src/java.base/share/classes/java/lang/Float.java @@ -93,9 +93,9 @@ public final class Float extends Number public static final float NEGATIVE_INFINITY = -1.0f / 0.0f; /** - * A constant holding a Not-a-Number (NaN) value of type - * {@code float}. It is equivalent to the value returned by - * {@code Float.intBitsToFloat(0x7fc00000)}. + * A constant holding a Not-a-Number (NaN) value of type {@code float}. + * It is {@linkplain Double##equivalenceRelation equivalent} + * to the value returned by{@code Float.intBitsToFloat(0x7fc00000)}. */ public static final float NaN = 0.0f / 0.0f;