Files
openide/java/java-impl/resources/inspectionDescriptions/LocalCanBeFinal.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

22 lines
550 B
HTML

<html>
<body>
Reports local variables or parameters that may have the <code>final</code> modifier added to their declaration.
<p>Example:</p>
<pre><code>
ArrayList&lt;Integer&gt; list = new ArrayList();
fill(list);
return list;
</code></pre>
<p>After the quick-fix is applied:</p>
<pre><code>
final ArrayList&lt;Integer&gt; list = new ArrayList();
fill(list);
return list;
</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>