Files
2025-02-05 04:43:28 +00:00

16 lines
696 B
HTML

<html>
<body>
Reports modifiable <code>public</code> <code>static</code> Collection fields.
<p>Even though they are often used to store collections of constant values, these fields nonetheless represent a security
hazard, as their contents may be modified even if the field is declared as <code>final</code>.</p>
<p><b>Example:</b></p>
<pre><code>
public static final List&lt;String&gt; EVENTS = new ArrayList&lt;&gt;();
</code>
</pre>
<!-- tooltip end -->
<p>
Use the table in the <b>Options</b> section to specify methods returning unmodifiable collections.
<code>public</code> <code>static</code> collection fields initialized with these methods will not be reported.
</body>
</html>