kemitix-checkstyle-ruleset/builder/src/main/resources/rules/NoClone.md

263 B

This check cannot be suppressed.

Checks that the clone() method from Object has not been overridden. Use a copy constructor, or better yet, a static factory method.

See [Effective Java], 2nd Edition by Josh Bloch: Item 11: Override clone judiciously.