From 1c0095548ff8810f8ef6a9dabebfd57cf1a1b9b2 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Thu, 28 Nov 2024 11:34:44 -0500 Subject: [PATCH] No need for blank Javadoc lines between Javadoc @ tags --- .../java/org/apache/commons/pool2/KeyedObjectPool.java | 1 - .../java/org/apache/commons/pool2/PooledObjectFactory.java | 1 - .../apache/commons/pool2/impl/GenericKeyedObjectPool.java | 1 - .../org/apache/commons/pool2/impl/LinkedBlockingDeque.java | 7 ------- .../org/apache/commons/pool2/AbstractTestObjectPool.java | 1 - 5 files changed, 11 deletions(-) diff --git a/src/main/java/org/apache/commons/pool2/KeyedObjectPool.java b/src/main/java/org/apache/commons/pool2/KeyedObjectPool.java index a3b7c1e8d..1a3fbbf72 100644 --- a/src/main/java/org/apache/commons/pool2/KeyedObjectPool.java +++ b/src/main/java/org/apache/commons/pool2/KeyedObjectPool.java @@ -160,7 +160,6 @@ default void addObjects(final K key, final int count) throws Exception { * * @param key the key used to obtain the object * @return an instance from this pool. - * * @throws IllegalStateException * after {@link #close close} has been called on this pool * @throws Exception diff --git a/src/main/java/org/apache/commons/pool2/PooledObjectFactory.java b/src/main/java/org/apache/commons/pool2/PooledObjectFactory.java index deb939028..c8254ddcf 100644 --- a/src/main/java/org/apache/commons/pool2/PooledObjectFactory.java +++ b/src/main/java/org/apache/commons/pool2/PooledObjectFactory.java @@ -66,7 +66,6 @@ * * @param Type of element managed in this factory. * @see ObjectPool - * * @since 2.0 */ public interface PooledObjectFactory { diff --git a/src/main/java/org/apache/commons/pool2/impl/GenericKeyedObjectPool.java b/src/main/java/org/apache/commons/pool2/impl/GenericKeyedObjectPool.java index 10472de6d..e1dbb8274 100644 --- a/src/main/java/org/apache/commons/pool2/impl/GenericKeyedObjectPool.java +++ b/src/main/java/org/apache/commons/pool2/impl/GenericKeyedObjectPool.java @@ -710,7 +710,6 @@ public void close() { * * @param key Key associated with new pooled object. * @return The new, wrapped pooled object. May return null. - * * @throws Exception If the objection creation fails. */ private PooledObject create(final K key) throws Exception { diff --git a/src/main/java/org/apache/commons/pool2/impl/LinkedBlockingDeque.java b/src/main/java/org/apache/commons/pool2/impl/LinkedBlockingDeque.java index 599a6ec14..2cbff896a 100644 --- a/src/main/java/org/apache/commons/pool2/impl/LinkedBlockingDeque.java +++ b/src/main/java/org/apache/commons/pool2/impl/LinkedBlockingDeque.java @@ -475,7 +475,6 @@ public Iterator descendingIterator() { * * @param c The collection to add the elements to * @return number of elements added to the collection - * * @throws UnsupportedOperationException if the add operation is not * supported by the specified collection * @throws ClassCastException if the class of the elements held by this @@ -685,7 +684,6 @@ public boolean offer(final E e) { * @param e element to link * @param timeout length of time to wait * @return {@code true} if successful, otherwise {@code false} - * * @throws NullPointerException if e is null * @throws InterruptedException if the thread is interrupted whilst waiting * for space @@ -704,7 +702,6 @@ boolean offer(final E e, final Duration timeout) throws InterruptedException { * @param timeout length of time to wait * @param unit units that timeout is expressed in * @return {@code true} if successful, otherwise {@code false} - * * @throws NullPointerException if e is null * @throws InterruptedException if the thread is interrupted whilst waiting * for space @@ -734,7 +731,6 @@ public boolean offerFirst(final E e) { * @param e element to link * @param timeout length of time to wait * @return {@code true} if successful, otherwise {@code false} - * * @throws NullPointerException if e is null * @throws InterruptedException if the thread is interrupted whilst waiting * for space @@ -764,7 +760,6 @@ public boolean offerFirst(final E e, final Duration timeout) throws InterruptedE * @param timeout length of time to wait * @param unit units that timeout is expressed in * @return {@code true} if successful, otherwise {@code false} - * * @throws NullPointerException if e is null * @throws InterruptedException if the thread is interrupted whilst waiting * for space @@ -794,7 +789,6 @@ public boolean offerLast(final E e) { * @param e element to link * @param timeout length of time to wait * @return {@code true} if successful, otherwise {@code false} - * * @throws NullPointerException if e is null * @throws InterruptedException if the thread is interrupted whist waiting * for space @@ -824,7 +818,6 @@ boolean offerLast(final E e, final Duration timeout) throws InterruptedException * @param timeout length of time to wait * @param unit units that timeout is expressed in * @return {@code true} if successful, otherwise {@code false} - * * @throws NullPointerException if e is null * @throws InterruptedException if the thread is interrupted whist waiting * for space diff --git a/src/test/java/org/apache/commons/pool2/AbstractTestObjectPool.java b/src/test/java/org/apache/commons/pool2/AbstractTestObjectPool.java index a81afce03..4d3800eb9 100644 --- a/src/test/java/org/apache/commons/pool2/AbstractTestObjectPool.java +++ b/src/test/java/org/apache/commons/pool2/AbstractTestObjectPool.java @@ -62,7 +62,6 @@ private static void reset(final ObjectPool pool, final MethodCallPoolabl * @param The exception type throws by the pool * @param factory The factory to be used by the object pool * @return the newly created empty pool - * * @throws UnsupportedOperationException if the pool being tested does not * follow pool contracts. */