mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-06 08:00:18 +07:00
GitOrigin-RevId: 8b2b63fc6db476ca0c2cfe5cadd84db6c4236d0f
16 lines
696 B
HTML
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<String> EVENTS = new ArrayList<>();
|
|
</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> |