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

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>