mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
Related: IDEA-372834 GitOrigin-RevId: 6cceb2c89e45572f6244768031ef29fe455eb437
30 lines
647 B
HTML
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> |