Versions Compared

Key

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

...

Note that accessor functions should be careful about providing references to private mutable objects; see guideline rule "OBJ09-J. Defensively copy private mutable class members before returning their references" for details.

...

Detection of public and protected data members is trivial; heuristic detection of the presence or absence of getter and setter wrapper methods is straightforward. However, simply reporting all detected cases without suppressing those cases covered by the exceptions to this rule would produce many false positives and appears unlikely to be satisfactory. Sound detection and application of the exceptions to this guideline rule appears to be infeasible; heuristic techniques may be useful.

...