Defensive Copy

last modified: November 15, 2012

See: http://java.sun.com/developer/JDCTechTips/2001/tt0904.html and ReturnNewObjectsFromAccessorMethods

It is often a good idea to consider ImmutableObjects to eliminate the need for defensive copies.


Loading...