Files
openide/java/java-impl/resources/inspectionDescriptions/CloneCallsConstructors.html
Leonid Shalupov 40795fe787 IJI-2422: community/java: move resources under resources root
GitOrigin-RevId: 8b2b63fc6db476ca0c2cfe5cadd84db6c4236d0f
2025-02-05 04:43:28 +00:00

11 lines
477 B
HTML

<html>
<body>
Reports calls to object constructors inside <code>clone()</code> methods.
<p>It is considered good practice to call <code>clone()</code> to instantiate objects inside of a <code>clone()</code> method
instead of creating them directly to support later subclassing.
This inspection will not report
<code>clone()</code> methods declared as <code>final</code>
or <code>clone()</code> methods on <code>final</code> classes.</p>
<!-- tooltip end -->
</body>
</html>