Versions Compared

Key

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

...

Use of the == and != operators for comparing the values of boxed primitive types is forbidden not allowed in all other cases.

Note that JVM implementations are allowed, but not required, to memoize additional values:

...

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="6bc1155f52c5766b-76abcb0d-41124571-bc21b8c1-fb387bd6632001cc96a5e04c"><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="d32e98b76e635803-639a54ed-460f4aab-95428ca4-0ad7ed82797f32b0f711361f"><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="8650c56795db997d-e0c685ee-44cf4838-b07f91c8-0f50b101f2cce86e5fd2c0d3"><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>

...