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="f797ed099594dbe8-e701b2b7-48994d7f-bc658bc4-72e2ae939f6248ddf55bc98e"><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="0562ae780f95ff76-c36a79a5-49944518-99078dd5-ec923b953e6e307386919ac0"><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>

...