Files
openide/java/java-impl/resources/inspectionDescriptions/UnnecessaryFinalOnLocalVariableOrParameter.html
Bartek Paciaandintellij-monorepo-bot 9f4c117fb2 [java-inspections] IJ-CR-177985 improve inspection descriptions
Related: IDEA-372834

GitOrigin-RevId: 6cceb2c89e45572f6244768031ef29fe455eb437
2025-10-13 23:16:24 +00:00

30 lines
647 B
HTML

<html>
<body>
Reports local variables or parameters unnecessarily declared <code>final</code>.
<p>Some coding standards frown upon variables declared <code>final</code> for reasons of terseness.</p>
<p><b>Example:</b></p>
<pre><code>
class Foo {
Foo(Object o) {}
void bar(final Object o) {
new Foo(o);
}
}
</code></pre>
<p>After the quick-fix is applied:</p>
<pre><code>
class Foo {
Foo(Object o) {}
void bar(Object o) {
new Foo(o);
}
}
</code></pre>
<!-- tooltip end -->
<p>
Use the inspection's options to define what kinds of parameters or local variables should be reported.
</p>
</body>
</html>