...
Code Block | ||
---|---|---|
| ||
... public static final FuncLoader m_functions; ... |
Compliant Solution
Additionally for mutable static state one can define assessor methods and add appropriate security checks.
...
However as a cautionary note, simply changing the modifier to final may not prevent attackers from indirectly causing indirectly retrieving an incorrect value to be stored in from the static final variable before its initialization. See Eliminate Class Initialization Cycles for more on this problem.
...