diff --git a/src/main/java/org/apache/commons/lang3/concurrent/AtomicSafeInitializer.java b/src/main/java/org/apache/commons/lang3/concurrent/AtomicSafeInitializer.java index e6093339d..36fcf0e72 100644 --- a/src/main/java/org/apache/commons/lang3/concurrent/AtomicSafeInitializer.java +++ b/src/main/java/org/apache/commons/lang3/concurrent/AtomicSafeInitializer.java @@ -54,6 +54,7 @@ import java.util.concurrent.atomic.AtomicReference; public abstract class AtomicSafeInitializer extends AbstractConcurrentInitializer { private static final Object NO_INIT = new Object(); + /** A guard which ensures that initialize() is called only once. */ private final AtomicReference> factory = new AtomicReference<>();