...
This noncompliant code example uses the ==
operator to compare two Integer
objects. According to the guidelinerule, "EXP01-J. Do not confuse abstract object equality with reference equality," for the ==
operator to return true
for two object references, they must point to the same underlying object.
...
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="a33ed251d3bb2596-7cde86fe-4ba445a8-9d268a0b-b08918cc6514c3b9e3505ff2"><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="3fcb7d1f359fdcc9-70d361fc-4896434a-97e7b8db-10ba39cd69dc9c8a0aebb235"><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="a55931f665b639ad-113c1b70-43944989-9d99a679-f6e09f1231299bbe87b5487d"><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> |
...