Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Edited by sciSpider Java v3.0

...

If input has to be validated, make sure that the values are copied from the builder class to the containing class's fields prior to checking. The builder class does not violate SCP02-J. Do not expose private members of the outer class from within a nested class since it maintains a copy of the variables defined in the scope of the containing class. These take precedence and thus as a result do not break encapsulation.

...