Wiki Markup |
---|
A boxing conversion converts the value of a primitive type to the corresponding value of the reference type, for example, from {{int}} to {{Integer}} \[[JLS 2005|AA. Bibliography#JLS 05]\]. This is convenient in cases where an object parameter is required, such as with collection classes like {{Map}} and {{List}}. Another use case is for interoperation with methods that require their parameters to be object references rather than primitive types. Automatic conversion to the resulting wrapper types also reduces clutter in code. |
...
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="b98a200ba5ad03a4-214f8157-47784a44-9bc0bafa-edf1968b944a69f3633d1993"><ac:plain-text-body><![CDATA[ | [[Core Java 2004 | AA. Bibliography#Core Java 04]] | Chapter 5 | ]]></ac:plain-text-body></ac:structured-macro> | |
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="664b62313bb9b5e7-e5f9a09a-438d4409-81679e79-56e2404787ae8169f58b54df"><ac:plain-text-body><![CDATA[ | [[JLS 2005 | AA. Bibliography#JLS 05]] | [§5§5.1.7, "Boxing Conversions" | 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="1985d4bdd86e720f-4bc6478d-4eae4b3a-8be8b9bc-416c718647b1b57f8628b8b9"><ac:plain-text-body><![CDATA[ | [[Techtalk 2007 | AA. Bibliography#Techtalk 07]] | "The Joy of Sets" | ]]></ac:plain-text-body></ac:structured-macro> |
...
EXP06-J. Do not use side-effecting expressions in assertions 02. Expressions (EXP) EXP01EXP05-J. Never dereference null pointersDo not write more than once to the same variable within an expression