Cloneable and Immutable

Max (Weijun) Wang Weijun.Wang at Sun.COM
Wed Aug 19 21:57:18 PDT 2009


Hi

I'm refactoring an existing Cloneable class to make it immutable. It  
seems I can simply remove the clone() method and let Object.clone()  
take care it. Also, if it's a final class, is it better to simply  
return this?

Thanks
Max


More information about the jdk7-dev mailing list