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


The following commit(s) were added to refs/heads/master by this push:
     new 0d729dd  Javadoc.
0d729dd is described below

commit 0d729dd72923bd2825669c455e5b3d6dde115f65
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Sun Apr 3 11:07:45 2022 -0400

    Javadoc.
---
 .../concurrent/AbstractConcurrentInitializerTest.java  |  8 ++++----
 .../lang3/concurrent/AtomicSafeInitializerTest.java    | 18 ++++++++----------
 2 files changed, 12 insertions(+), 14 deletions(-)

diff --git 
a/src/test/java/org/apache/commons/lang3/concurrent/AbstractConcurrentInitializerTest.java
 
b/src/test/java/org/apache/commons/lang3/concurrent/AbstractConcurrentInitializerTest.java
index 436d035..c88f29e 100644
--- 
a/src/test/java/org/apache/commons/lang3/concurrent/AbstractConcurrentInitializerTest.java
+++ 
b/src/test/java/org/apache/commons/lang3/concurrent/AbstractConcurrentInitializerTest.java
@@ -38,7 +38,7 @@ public abstract class AbstractConcurrentInitializerTest {
     /**
      * Tests a simple invocation of the get() method.
      *
-     * @throws org.apache.commons.lang3.concurrent.ConcurrentException because 
the object under test may throw it
+     * @throws org.apache.commons.lang3.concurrent.ConcurrentException because 
the object under test may throw it.
      */
     @Test
     public void testGet() throws ConcurrentException {
@@ -49,7 +49,7 @@ public abstract class AbstractConcurrentInitializerTest {
      * Tests whether sequential get() invocations always return the same
      * instance.
      *
-     * @throws org.apache.commons.lang3.concurrent.ConcurrentException because 
the object under test may throw it
+     * @throws org.apache.commons.lang3.concurrent.ConcurrentException because 
the object under test may throw it.
      */
     @Test
     public void testGetMultipleTimes() throws ConcurrentException {
@@ -64,8 +64,8 @@ public abstract class AbstractConcurrentInitializerTest {
      * Tests whether get() can be invoked from multiple threads concurrently.
      * Always the same object should be returned.
      *
-     * @throws org.apache.commons.lang3.concurrent.ConcurrentException because 
the object under test may throw it
-     * @throws java.lang.InterruptedException because the threading API my 
throw it
+     * @throws org.apache.commons.lang3.concurrent.ConcurrentException because 
the object under test may throw it.
+     * @throws java.lang.InterruptedException because the threading API my 
throw it.
      */
     @Test
     public void testGetConcurrent() throws ConcurrentException,
diff --git 
a/src/test/java/org/apache/commons/lang3/concurrent/AtomicSafeInitializerTest.java
 
b/src/test/java/org/apache/commons/lang3/concurrent/AtomicSafeInitializerTest.java
index f2d8ddc..4aa6564 100644
--- 
a/src/test/java/org/apache/commons/lang3/concurrent/AtomicSafeInitializerTest.java
+++ 
b/src/test/java/org/apache/commons/lang3/concurrent/AtomicSafeInitializerTest.java
@@ -24,10 +24,9 @@ import org.junit.jupiter.api.BeforeEach;
 import org.junit.jupiter.api.Test;
 
 /**
- * Test class for {@code AtomicSafeInitializer}.
+ * Test class for {@code AtomicSafeInitializer} which also serves as a simple 
example.
  */
-public class AtomicSafeInitializerTest extends
-        AbstractConcurrentInitializerTest {
+public class AtomicSafeInitializerTest extends 
AbstractConcurrentInitializerTest {
     /** The instance to be tested. */
     private AtomicSafeInitializerTestImpl initializer;
 
@@ -53,19 +52,18 @@ public class AtomicSafeInitializerTest extends
      * @throws java.lang.InterruptedException because {@link 
#testGetConcurrent()} may throw it
      */
     @Test
-    public void testNumberOfInitializeInvocations() throws ConcurrentException,
-            InterruptedException {
+    public void testNumberOfInitializeInvocations() throws 
ConcurrentException, InterruptedException {
         testGetConcurrent();
         assertEquals(1, initializer.initCounter.get(), "Wrong number of 
invocations");
     }
 
     /**
-     * A concrete test implementation of {@code AtomicSafeInitializer}. This
-     * implementation also counts the number of invocations of the initialize()
-     * method.
+     * A concrete test implementation of {@code AtomicSafeInitializer} which 
also serves as a simple example. 
+     * <p>
+     * This implementation also counts the number of invocations of the 
initialize() method.
+     * </p>
      */
-    private static class AtomicSafeInitializerTestImpl extends
-            AtomicSafeInitializer<Object> {
+    private static class AtomicSafeInitializerTestImpl extends 
AtomicSafeInitializer<Object> {
         /** A counter for initialize() invocations. */
         final AtomicInteger initCounter = new AtomicInteger();
 

Reply via email to