Files
openide/java/java-impl/resources/inspectionDescriptions/PublicStaticArrayField.html
2025-02-05 04:43:28 +00:00

15 lines
427 B
HTML

<html>
<body>
Reports <code>public</code> <code>static</code> array fields.
<p>
Such fields are often used to store arrays of constant values. Still, they represent a security
hazard, as their contents may be modified, even if the field is declared <code>final</code>.</p>
<p><b>Example:</b></p>
<pre><code>
public static String[] allowedPasswords = {"foo", "bar"};
</code></pre>
<!-- tooltip end -->
<p>
</body>
</html>