[java] cleanup of inspection description updates NonPublicClone

GitOrigin-RevId: dae3039ddae4c9aa0ba593c09506371ca4d18b13
This commit is contained in:
Olga.Klisho
2021-04-15 00:30:08 +03:00
committed by intellij-monorepo-bot
parent 9582ec58c3
commit 27ad7cf29b
@@ -1,9 +1,9 @@
<html>
<body>
Reports <b>clone()</b> methods that are <b>protected</b> and not <b>public</b>.
When overriding the <b>clone()</b> method from <b>java.lang.Object</b> it is convention to make the method <b>public</b>,
Reports <code>clone()</code> methods that are <code>protected</code> and not <code>public</code>.
When overriding the <code>clone()</code> method from <code>java.lang.Object</code> it is convention to make the method <code>public</code>,
so that it is accessible from non-subclasses outside the package.
See also the documentation of <b>java.lang.Cloneable</b>
See also the documentation of <code>java.lang.Cloneable</code>
<!-- tooltip end -->
<p>
</body>