mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
19 lines
424 B
HTML
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> |