Versions Compared

Key

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

...

Related Guidelines

MITRE CWE: CWE-595 "Incorrect Syntactic Object ComparisonComparison of Object References Instead of Object Contents"

MITRE CWE: CWE-597 "Use of Wrong Operator in String Comparison"

...

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="11833ef4089bcd86-22d086f9-45164903-b1eea27e-bdda3aed114441888f1cc9d4"><ac:plain-text-body><![CDATA[

[[FindBugs 2008

AA. Bibliography#FindBugs 08]]

ES: Comparison of String objects using == or !=

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

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="085d69f6eb47da56-ce6c70e7-4d5146f0-b1d394d4-a2ea934e9a7f0144a316b1dd"><ac:plain-text-body><![CDATA[

[[JLS 2005

AA. Bibliography#JLS 05]]

[§3.10.5, "String Literals"

http://java.sun.com/docs/books/jls/third_edition/html/lexical.html#3.10.5]

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

 

§5.6.2, "Binary Numeric Promotion"

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="89ec9bab73739a11-0f2b9cec-464f4180-b92e98cc-a974116205e61947b0c3c8d7"><ac:plain-text-body><![CDATA[

[[Rogue 2000

AA. Bibliography#Rogue 2000]]

Rule 79: Use equals(), not ==, to test for equality of objects

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

...