Versions Compared

Key

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

...

Wiki Markup
Objects that are instances of classes that provide this guarantee obey the invariant that, for any two references {{a}} and {{b}}, {{a.equals(b)}} is exactly equivalent to {{a == b}} \[java:[Bloch 2008|AA. Bibliography#BlochReferences#Bloch 08]\]. The {{String}} class fails to meet these requirements and, consequently, fails to preserve this invariant.

...

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="9786d7c0fd7192fe-eaea1cc0-4c4941d4-80e2bf66-74e9ad3b4e4518d987b82614"><ac:plain-text-body><![CDATA[

[java:[FindBugs 2008

AA. Bibliography#FindBugs References#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="9e8af242920f459a-74fd98f6-4a73481f-9f1c98f2-4e4862c06bbfe9247f66e9fc"><ac:plain-text-body><![CDATA[

[java:[JLS 2005

AA. Bibliography#JLS References#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"

...