'clone()' method not 'public'
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.
Inspection Details | |
---|---|
Available in: | IntelliJ IDEA 2023.3, Qodana for JVM 2023.3 |
Plugin: | Java, 233.SNAPSHOT |
Last modified: 13 July 2023