ftomassetti / effectivejava

Run queries on your Java code to check if it meets the criteria suggested by the book Effective Java. And some others.
Apache License 2.0
507 stars 45 forks source link

Item 11: Cloneable #11

Open ftomassetti opened 10 years ago

ftomassetti commented 10 years ago

Clone should return the same class of the defining class and do not declare to throw CloneNotSUpportedException.

They should also not call not-final methods.

ftomassetti commented 9 years ago

To do that we should be able to solve method calls