mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
GitOrigin-RevId: 8b2b63fc6db476ca0c2cfe5cadd84db6c4236d0f
13 lines
611 B
HTML
13 lines
611 B
HTML
<html>
|
|
<body>
|
|
Reports classes that override the
|
|
<code>clone()</code> method but don't implement the <code>Cloneable</code> interface.
|
|
This usually represents a programming error.
|
|
<!-- tooltip end -->
|
|
<p>
|
|
Use the <b>Only warn on 'public' clone methods</b> option to ignore methods that aren't <code>public</code>.</p>
|
|
<p>For classes designed to be inherited, you may choose to override <code>clone()</code> and declare it as <code>protected</code>
|
|
without implementing the <code>Cloneable</code> interface and decide whether to implement the <code>Cloneable</code> interface in subclasses.
|
|
</p>
|
|
</body>
|
|
</html> |