Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

Secure Coding Guidelines for the Java Programming Language, Version 3.0

Guideline 2-2. Create copies of mutable outputs

Bibliography

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="aab42f8c-1404-4fea-a4c7-ef8fd6237440"><ac:plain-text-body><![CDATA[

[ [Bloch 2008AA. References#Bloch 08] ]

Item 39. Make defensive copies when needed ]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="b2ab12f6-49c2-4af5-9dcb-14954f96e264"><ac:plain-text-body><![CDATA[

[ [Pugh 2009AA. References#Pugh 09] ]

Returning References to Internal Mutable State ]]></ac:plain-text-body></ac:structured-macro>

...

OBJ05-J. Defensively copy private mutable class members before returning their references      04. Object Orientation (OBJ)