Versions Compared

Key

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

...

CERT C++ Secure Coding Standard

OOP00-CPP. Declare data members private

SCG 2009

Guideline 3-2 Define wrapper methods around modifiable internal state

MITRE CWE

CWE ID 766, "Critical Variable Declared Public"

Secure Coding Guidelines for the Java Programming Language, Version 3.0

Guideline 3-2 Define wrapper methods around modifiable internal state

Bibliography

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="dc087b176e8f4693-9931fbb9-45784fde-87fb879c-652e45e0a3e2660861f8a399"><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="4a09fd11e5fd537a-d7775f27-457245dc-af2baa27-aa0eaea58fbbbea38353580a"><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="e1eb7b134e0f6c53-73a217e8-441b49bc-8bca8dfc-1ef88bb99bcc8b482658875e"><ac:plain-text-body><![CDATA[

[[Long 2005

AA. Bibliography#Long 05]]

§2.2, Public Fields

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

...