Versions Compared

Key

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

...

This guideline prohibits publishing a reference to a partially initialized member object instance before initialization completes while CON14-J. Do not let the "(this" ) reference escape during object construction prohibits the this reference of the current object from escaping.

...

Consequently, the reference to the helper field should not be published before class Foo's constructor has finished its initialization (see CON14-J. Do not let the "(this" ) reference escape during object construction).

...