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

24 lines
662 B
HTML

<html>
<body>
Reports inner class fields named identically to a field of a surrounding class.
As a result of such naming, you may accidentally use the field from the inner class
when using the identically named field of a surrounding class is intended.
<p>A quick-fix is suggested to rename the inner class field.</p>
<p><b>Example:</b></p>
<pre><code>
class Outer {
private String name;
class Inner {
private String name;
}
}
</code></pre>
<!-- tooltip end -->
<p>
Use the option to choose whether this inspection should report all name clashes,
or only clashes with fields that are visible from the inner class.
</p>
</body>
</html>