...
Note that accessor functions should be careful about providing references to private mutable objects; see rule "OBJ09OBJ05-J. Defensively copy private mutable class members before returning their references" for details.
...
C++ Secure Coding Standard | ||||
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="6c438db99c56cd35-a3bb74c0-4bc04a57-b226b000-16011562c7130d13589dd726"><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> |
...
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="798fc8516f47bd25-37a1825e-45eb48dc-8d4aa2ae-b8fefe8fe4bf789ec0c4bba9"><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="b7d16022a5e400be-47f70627-478643d8-83f1b617-295911f6daf5e9853c103f9b"><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="679dec24d263e3ce-7a759b33-4ab14b1c-ac8ebe4a-24449ffb793fbf9c8bbeaf1e"><ac:plain-text-body><![CDATA[ | [[Long 2005 | AA. Bibliography#Long 05]] | §2.2, Public Fields | ]]></ac:plain-text-body></ac:structured-macro> |
...