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="048e68949a8b6c06-4f397ace-42d340c5-bdaaa1ab-196b688d84d7c0c191c2bd71"><ac:plain-text-body><![CDATA[

[[SCG 20072009

AA. Bibliography#SCG 0709]]

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

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

MITRE CWE

CWE-766 "Critical Variable Declared Public"

...

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="6d24f9d030a40b53-f35d13af-4420403c-a0a993e4-b3f3a3bf9b1aa3eabb0d4b2d"><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="8a1688043a4c5740-cb632c17-4d594891-a3f79811-f45f74f53b245ebb0ed550e8"><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="7a12109c64f7c619-5a1662fa-4f434676-8c12b89c-adf2532aea9aa7c45b6240fd"><ac:plain-text-body><![CDATA[

[[Long 2005

AA. Bibliography#Long 05]]

§2.2, Public Fields

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

...