...
This ensures that threads do not see a compromised Publisher instance. The num variable is also declared as final; consequently, the class is immutable. There is no threat of a caller invoking newInstance() to obtain a partially constructed object because pu is not returned until the construction of the object is over.
Noncompliant Code Example (handlers)
...