From 534305aa7436945da8c56ead9b67410ec449c5c1 Mon Sep 17 00:00:00 2001 From: Akshat Lal Date: Tue, 30 Jun 2026 22:54:09 -0400 Subject: [PATCH] Fix NaN documentation wording --- annotation/.classpath | 24 +++++++++++++++++++++--- docs/bugpattern/EqualsNaN.md | 4 ++-- 2 files changed, 23 insertions(+), 5 deletions(-) diff --git a/annotation/.classpath b/annotation/.classpath index fd7ad7fbda7..cfd1a843be6 100644 --- a/annotation/.classpath +++ b/annotation/.classpath @@ -1,18 +1,19 @@ - + - + + - + @@ -22,5 +23,22 @@ + + + + + + + + + + + + + + + + + diff --git a/docs/bugpattern/EqualsNaN.md b/docs/bugpattern/EqualsNaN.md index b375262d3ff..174482e4cd2 100644 --- a/docs/bugpattern/EqualsNaN.md +++ b/docs/bugpattern/EqualsNaN.md @@ -1,2 +1,2 @@ -As per JLS 15.21.1, == NaN comparisons always return false, even NaN == NaN. -Instead, use the isNaN methods to check for NaN. +As per the Java Language Specification, == comparisions with NaN always return false, including NaN == NaN. +Instead, use the isNaN methods to test for NaN values. \ No newline at end of file