Versions Compared

Key

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

...

Using the equivalence operators to compare values of boxed primitives can lead to erroneous comparisons.

Guideline Rule

Severity

Likelihood

Remediation Cost

Priority

Level

EXP03-J

low

likely

medium

P6

L2

...

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="fdbc8cc93d19eeba-4585045e-4632456b-bde3b52e-26fa3c050578c01fbb03cf65"><ac:plain-text-body><![CDATA[

[[Bloch 2009

AA. Bibliography#Bloch 09]]

4. "Searching for the One"

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

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="1c28c35066821d13-50aafcab-44984686-a5698d53-f8a7086567dbd070884efbbf"><ac:plain-text-body><![CDATA[

[[JLS 2005

AA. Bibliography#JLS 05]]

[§5.1.7, "Boxing Conversion"

http://java.sun.com/docs/books/jls/third_edition/html/conversions.html#5.1.7]

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

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="af4998729f40b139-d4da425c-4f344e24-a50d8d58-a9d70a32dc0998ccbac6d79c"><ac:plain-text-body><![CDATA[

[[Pugh 2009

AA. Bibliography#Pugh 09]]

Using == to compare objects rather than .equals

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

...