Versions Compared

Key

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

...

Related Guidelines

...

[API 2006]

Method clone()

[Bloch 2008]

Item 39. Make defensive copies when needed

[Goetz 2006]

3.2, Publication and Escape: Allowing Internal Mutable State to Escape

[Gong 2003]

9.4, Private Object State and Object Immutability

[Haggar 2000]

Practical Java Praxis 64. Use clone for immutable objects when passing or receiving object references to mutable objects

[Security 2006]

 

...

      04. Rule 05: Object Orientation (OBJ)