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="46e5d1149f14eb08-53dc1023-4a434697-a8249e81-cc353296c8bdf6de3c283fb9"><ac:plain-text-body><![CDATA[

[[SCG 2007

AA. Bibliography#SCG 07]]

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"

Bibliography

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="c23e7891ba4a322b-52f403a4-4aa142ce-878b900a-a7beb8a8f7f4e250c73971f8"><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="edd81e96d7562383-45686fee-4121460b-b63cacab-1c9656ddb5c3b08087bb7048"><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="43526768113560c2-0df04258-49174558-b8788326-83a58e7194fc8f5d81905de1"><ac:plain-text-body><![CDATA[

[[Long 2005

AA. Bibliography#Long 05]]

§2.2, Public Fields

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

...