Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

C++ Secure Coding Standard

"OOP00-CPP. Declare data members private"

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="0385472c-13c0-41c7-89c6-785820cd0abb"><ac:plain-text-body><![CDATA[

[[SCG 2009AA. Bibliography#SCG 09]]

Guideline 3-2 : " Define wrapper methods around modifiable internal state "

]]></ac:plain-text-body></ac:structured-macro>

MITRE CWE

CWE ID 766, "Critical Variable Declared Public"

...

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="2e80f0c941a1c86e-f74ed507-47914894-b9709db0-7778c50bbe978c3659ed63b2"><ac:plain-text-body><![CDATA[

[[Bloch 2008

AA. Bibliography#Bloch 08]]

Items 13: Minimize the accessibility of classes and members; 14: In public classes, use accessor methods, not public fields

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="0be3946b3ecd80e0-b28b9150-44734d22-a2ed98a0-925f875e7add7c7407241700"><ac:plain-text-body><![CDATA[

[[JLS 2005

AA. Bibliography#JLS 05]]

[§6.6 "Access Control"

http://java.sun.com/docs/books/jls/third_edition/html/names.html#6.6]

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="03ce519dc7a92145-8976239e-49cb4459-90d4a2f2-2a3353b62dee92831be68357"><ac:plain-text-body><![CDATA[

[[Long 2005

AA. Bibliography#Long 05]]

§2.2, Public Fields

]]></ac:plain-text-body></ac:structured-macro>

...