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

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>