Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: added java xref

...

This rule appears in the C++ Secure Coding Standard as DCL00-CPP. Const-qualify immutable objects.

This rule appears in the Java Secure Coding Standard as DCL04-J. Declare mathematical constants as static and final

References

Wiki Markup
\[[Dewhurst 02|AA. References#Dewhurst 02]\] Gotcha #25, "#define Literals"
\[[ISO/IEC 9899:1999|AA. References#ISO/IEC 9899-1999]\] Section 6.7.3, "Type qualifiers"
\[[Saks 00|AA. References#Saks 00]\]

...