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="013f97b7fc5da4b8-cd45a3d3-48914a58-b209959b-717ec4f4f9cddef1dd53a48b"><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="a6cb0b33958171c1-9552ab55-405c4a23-a84b8083-420c7557f47d0f8763eec56e"><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="33327394f2760936-f70c46fa-460c4870-8551b091-2db9a833272759e0cf000ef4"><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>

...