This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-lang.git
commit d8aeb514ed993c7fefa17ecd0e2f490c39122422 Author: Gary D. Gregory <[email protected]> AuthorDate: Wed Aug 20 16:41:55 2025 -0400 Javadoc --- .../commons/lang3/concurrent/AbstractConcurrentInitializer.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/apache/commons/lang3/concurrent/AbstractConcurrentInitializer.java b/src/main/java/org/apache/commons/lang3/concurrent/AbstractConcurrentInitializer.java index 08f5d0545..57e4d915e 100644 --- a/src/main/java/org/apache/commons/lang3/concurrent/AbstractConcurrentInitializer.java +++ b/src/main/java/org/apache/commons/lang3/concurrent/AbstractConcurrentInitializer.java @@ -157,7 +157,7 @@ public void close() throws ConcurrentException { /** * Gets an Exception with a type of E as defined by a concrete subclass of this class. * - * @param e The actual exception that was thrown + * @param e The actual exception that was thrown. * @return a new exception with the actual type of E, that wraps e. */ protected abstract E getTypedException(Exception e); @@ -170,8 +170,8 @@ public void close() throws ConcurrentException { * Subclasses and clients that do not provide an initializer are expected to implement this method. * </p> * - * @return the managed data object - * @throws E if an error occurs during object creation + * @return the managed data object. + * @throws E if an error occurs during object creation. */ @SuppressWarnings("unchecked") protected T initialize() throws E { @@ -180,7 +180,6 @@ protected T initialize() throws E { } catch (final Exception e) { // Do this first so we don't pass a RuntimeException or Error into an exception constructor ExceptionUtils.throwUnchecked(e); - // Depending on the subclass of AbstractConcurrentInitializer E can be Exception or ConcurrentException // if E is Exception the if statement below will always be true, and the new Exception object created // in getTypedException will never be thrown. If E is ConcurrentException and the if statement is false @@ -198,7 +197,7 @@ protected T initialize() throws E { * call to initialize completes successfully. If the implementation of ConcurrentInitializer can initialize multiple objects, this will only return true if * all objects have been initialized. * - * @return true if all initialization is complete, otherwise false + * @return true if all initialization is complete, otherwise false. */ protected abstract boolean isInitialized();
