Files
openide/java/java-impl/resources/inspectionDescriptions/ClassReferencesSubclass.html
2025-02-05 04:43:28 +00:00

19 lines
424 B
HTML

<html>
<body>
Reports classes which contain references to one of their subclasses.
Such references may be confusing and violate several rules of object-oriented design.
<p>Example:</p>
<pre><code>
class Entity {
// Warning: the class references its subclass
void compare(SimpleEntity entity) {
...
}
}
class SimpleEntity extends Entity {
...
}
</code></pre>
<!-- tooltip end -->
</body>
</html>