Inspectopedia Help

'public static' array field

Reports public static array fields.

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 final.

Example:

public static String[] allowedPasswords = {"foo", "bar"};

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3

Plugin:

Java, 233.SNAPSHOT

Last modified: 13 July 2023