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