Versions Compared

Key

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

...

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

Bibliography

<ac:structured-macro ac:name="unmigrated-wiki-markup

...

" ac:schema-version="1" ac:macro-id="5b981f4f-4860-4c22-94e1-167d2b913577"><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="e2c9b639-9975-4242-8c19-0cfabeb87541"><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="b085c2cb-c91e-4398-81ce-47ef6af2ec46"><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>

...

      02. Expressions (EXP)      EXP02-J. Use the two-argument Arrays.equals() method to compare the contents of arrays