mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
18 lines
493 B
HTML
18 lines
493 B
HTML
<html>
|
|
<body>
|
|
Reports <code>static</code> methods with a signature identical to a <code>static</code> method of a superclass.
|
|
Such a method may look like an override when in fact it hides the method from the superclass because
|
|
<code>static</code> methods in Java cannot be overridden.
|
|
<p><b>Example:</b></p>
|
|
<pre><code>
|
|
class Parent {
|
|
static void method(){}
|
|
}
|
|
|
|
class Example extends Parent {
|
|
static void method(){} //warning
|
|
}
|
|
</code></pre>
|
|
<!-- tooltip end -->
|
|
</body>
|
|
</html> |