mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
31 lines
924 B
HTML
31 lines
924 B
HTML
<html>
|
|
<body>
|
|
Reports parameters whose names differ from the corresponding
|
|
parameters of the methods they override or overload. While legal in Java, such inconsistent names may be confusing
|
|
and decrease the documentation benefits of good naming practices.
|
|
<p><b>Example:</b></p>
|
|
<pre><code>
|
|
class Person {
|
|
Person(String fullName) {}
|
|
}
|
|
class Child extends Person {
|
|
Child(String name) { super(name); }
|
|
}
|
|
</code></pre>
|
|
<p>After the quick-fix is applied:</p>
|
|
<pre><code>
|
|
class Person {
|
|
Person(String fullName) {}
|
|
}
|
|
class Child extends Person {
|
|
Child(String fullName) { super(fullName); }
|
|
}
|
|
</code></pre>
|
|
<!-- tooltip end -->
|
|
<p>
|
|
Use the options to indicate whether to ignore overridden parameter names that are only
|
|
a single character long or come from a library method. Both can be useful if
|
|
you do not wish to be bound by dubious naming conventions used in libraries.
|
|
</p>
|
|
</body>
|
|
</html> |