Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: added NCE/CS and two exceptions

...

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 do not break encapsulation.

...