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

46 lines
1.0 KiB
HTML

<html>
<body>
Reports unnecessary <code>super</code>
qualifiers in method calls and field references.
<p>
A <code>super</code> qualifier is unnecessary
when the field or method of the superclass is not hidden/overridden in the calling class.
</p>
<p><b>Example:</b></p>
<pre><code>
class Foo {
void foo() {}
}
class Bar extends Foo {
void bar() {
super.foo();
}
}
</code></pre>
<p>After the quick-fix is applied:</p>
<pre><code>
class Foo {
void foo() {}
}
class Bar extends Foo {
void bar() {
foo();
}
}
</code></pre>
<!-- tooltip end -->
<p>
Use the inspection settings to ignore qualifiers that help to distinguish superclass members access
from the identically named members of the outer class.
<p>
<p>
See also the following inspections:
</p>
<ul>
<li><i>Java | Visibility | Access to inherited field looks like access to element from surrounding code</i></li>
<li><i>Java | Visibility | Call to inherited method looks like call to local method</i></li>
</ul>
</body>
</html>