mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-15 02:59:33 +07:00
19 lines
690 B
HTML
19 lines
690 B
HTML
<html>
|
|
<body>
|
|
Reports <code>abstract</code> classes that have no <code>abstract</code> methods.
|
|
In most cases it does not make sense to have an <code>abstract</code> class without any <code>abstract</code> methods,
|
|
and the <code>abstract</code> modifier can be removed from the class.
|
|
If the class was declared <code>abstract</code> to prevent instantiation,
|
|
it is often a better option to use a <code>private</code> constructor to prevent instantiation instead.
|
|
<p><b>Example:</b></p>
|
|
<pre><code>
|
|
abstract class Example {
|
|
public String getName() {
|
|
return "IntelliJ IDEA";
|
|
}
|
|
}
|
|
</code></pre>
|
|
<!-- tooltip end -->
|
|
<p>Use the option to ignore utility classes.
|
|
</body>
|
|
</html> |