Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Comparisons with NaN values can lead to unexpected results.

Guideline Rule

Severity

Likelihood

Remediation Cost

Priority

Level

NUM10-J

low

probable

medium

P4

L3

...

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="49dc4a30a0e7c310-cc74c4d4-484340d6-bf958cfb-045d8026f3ecf6fe04d0c6d4"><ac:plain-text-body><![CDATA[

[[FindBugs 2008

AA. Bibliography#FindBugs 08]]

FE: Doomed test for equality to NaN

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="d7e0ec1a88aa1876-06672518-463c41d7-8e6b90d8-3ea6740e06ffed8a3d980e7a"><ac:plain-text-body><![CDATA[

[[JLS 2005

AA. Bibliography#JLS 05]]

[§4.2.3, "Floating-Point Types, Formats, and Values"

http://java.sun.com/docs/books/jls/third_edition/html/typesValues.html#4.2.3]

]]></ac:plain-text-body></ac:structured-macro>

...