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

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

...

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="f0e0aae536d1212f-78eefced-497d4cb2-a4c3a672-711aaab2bd9c70bcb34b14b9"><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="cfde854c72cc4660-0a95522f-4b7645ca-b5b3991d-6ea70e330b38dd5057439c25"><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="1a1279d726e14766-f8c40254-47cd47f2-b9a38217-d4a172ca35cdb008ace6e8f6"><ac:plain-text-body><![CDATA[

[[Long 2005

AA. Bibliography#Long 05]]

§2.2, Public Fields

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

...