...
Although final
can be used to specify immutable constants, there is a caveat when dealing with composite objects. See guideline "OBJ01-J. Do not assume that declaring a reference to be final causes the referenced object immutable" for more details.
Noncompliant Code Example
...
C++ Secure Coding Standard: "DCL06-CPP. Use meaningful symbolic constants to represent literal values in program logic"
C Secure Coding Standard: "DCL06-C. Use meaningful symbolic constants to represent literal values"
Bibliography
Wiki Markup |
---|
\[[API 2006|AA. Bibliography#API 06]\] \[[Core Java 2004|AA. Bibliography#Core Java 04]\] |
...