'clone()' method not 'public'

Last modified: 03 December 2024

Reports clone() methods that are protected and not public.

When overriding the clone() method from java.lang.Object, it is expected to make the method public, so that it is accessible from non-subclasses outside the package.