Versions Compared

Key

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

...

Although final can be used to specify immutable constants, there is a caveat when dealing with composite objects. See guideline "VOID OBJ02-J. Never conflate immutability of a reference with that of the referenced object" for more details.

Noncompliant Code Example

...

The code uses the literal 3.14 to represent the value ?. Although this it removes some of the ambiguity from the literals, it complicates code maintenance. If the programmer were to decide that a more precise value of ? is desired, all occurrences of 3.14 in the code would have to be found and replaced.

...

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="d900f929d11fb391-02b0b56e-47cc46b2-878b870c-e64fe0809ab2f3929cbdf803"><ac:plain-text-body><![CDATA[

[[API 2006

AA. References#API 06]]

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

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="f4834fff677a56e1-2c569553-4d79448c-86d4aca0-d4f780c5329c4375cd2904ab"><ac:plain-text-body><![CDATA[

[[Core Java 2004

AA. References#Core Java 04]]

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

...