Skip to content

Commit df218c1

Browse files
committed
No need for blank Javadoc lines between Javadoc @ tags
1 parent 8a4f58c commit df218c1

30 files changed

+0
-130
lines changed

src/main/java/org/apache/commons/pool3/BaseKeyedPooledObjectFactory.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,9 @@
2828
* </p>
2929
*
3030
* @see KeyedPooledObjectFactory
31-
*
3231
* @param <K> The type of keys managed by this factory.
3332
* @param <V> Type of element managed by this factory.
3433
* @param <E> Type of exception thrown by this factory.
35-
*
3634
* @since 2.0
3735
*/
3836
public abstract class BaseKeyedPooledObjectFactory<K, V, E extends Exception> extends BaseObject implements KeyedPooledObjectFactory<K, V, E> {
@@ -56,7 +54,6 @@ public void activateObject(final K key, final PooledObject<V> p) throws E {
5654
*
5755
* @param key the key used when constructing the object
5856
* @return an instance that can be served by the pool
59-
*
6057
* @throws E if there is a problem creating a new instance,
6158
* this will be propagated to the code requesting an object.
6259
*/

src/main/java/org/apache/commons/pool3/BaseObjectPool.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
*
2727
* @param <T> Type of element pooled in this pool.
2828
* @param <E> Type of exception thrown by this pool.
29-
*
3029
* @since 2.0
3130
*/
3231
public abstract class BaseObjectPool<T, E extends Exception> extends BaseObject implements ObjectPool<T, E> {
@@ -50,7 +49,6 @@ public void addObject() throws E, UnsupportedOperationException {
5049
* closed.
5150
*
5251
* @throws IllegalStateException when this pool has been closed.
53-
*
5452
* @see #isClosed()
5553
*/
5654
protected final void assertOpen() throws IllegalStateException {

src/main/java/org/apache/commons/pool3/BasePooledObjectFactory.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,8 @@
2727
*
2828
* @param <T> Type of element managed in this factory.
2929
* @param <E> Type of exception thrown in this factory.
30-
*
3130
* @see PooledObjectFactory
3231
* @see BaseKeyedPooledObjectFactory
33-
*
3432
* @since 2.0
3533
*/
3634
public abstract class BasePooledObjectFactory<T, E extends Exception> extends BaseObject implements PooledObjectFactory<T, E> {
@@ -51,7 +49,6 @@ public void activateObject(final PooledObject<T> p) throws E {
5149
* invocation.</p>
5250
*
5351
* @return an instance to be served by the pool, not null.
54-
*
5552
* @throws E if there is a problem creating a new instance,
5653
* this will be propagated to the code requesting an object.
5754
*/
@@ -86,7 +83,6 @@ public void passivateObject(final PooledObject<T> p) throws E {
8683
* Always returns {@code true}.
8784
*
8885
* @param p ignored
89-
*
9086
* @return {@code true}
9187
*/
9288
@Override
@@ -99,7 +95,6 @@ public boolean validateObject(final PooledObject<T> p) {
9995
* {@link PooledObject}.
10096
*
10197
* @param obj the instance to wrap, should not be null.
102-
*
10398
* @return The provided instance, wrapped by a {@link PooledObject}
10499
*/
105100
public abstract PooledObject<T> wrap(T obj);

src/main/java/org/apache/commons/pool3/KeyedObjectPool.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,9 @@
6262
* @param <K> The type of keys maintained by this pool.
6363
* @param <V> Type of element pooled in this pool.
6464
* @param <E> Type of exception thrown by this pool.
65-
*
6665
* @see KeyedPooledObjectFactory
6766
* @see ObjectPool
6867
* @see org.apache.commons.pool3.impl.GenericKeyedObjectPool GenericKeyedObjectPool
69-
*
7068
* @since 2.0
7169
*/
7270
public interface KeyedObjectPool<K, V, E extends Exception> extends Closeable {
@@ -78,7 +76,6 @@ public interface KeyedObjectPool<K, V, E extends Exception> extends Closeable {
7876
* "pre-loading" a pool with idle objects (Optional operation).
7977
*
8078
* @param key the key a new instance should be added to
81-
*
8279
* @throws E
8380
* when {@link KeyedPooledObjectFactory#makeObject} fails.
8481
* @throws IllegalStateException
@@ -161,9 +158,7 @@ default void addObjects(final K key, final int count) throws E, IllegalArgumentE
161158
* </p>
162159
*
163160
* @param key the key used to obtain the object
164-
*
165161
* @return an instance from this pool.
166-
*
167162
* @throws IllegalStateException
168163
* after {@link #close close} has been called on this pool
169164
* @throws E
@@ -190,7 +185,6 @@ default void addObjects(final K key, final int count) throws E, IllegalArgumentE
190185
* the given {@code key} (optional operation).
191186
*
192187
* @param key the key to clear
193-
*
194188
* @throws UnsupportedOperationException when this implementation doesn't
195189
* support the operation
196190
*
@@ -276,7 +270,6 @@ default List<K> getKeys() {
276270
*
277271
* @param key the key used to obtain the object
278272
* @param obj a {@link #borrowObject borrowed} instance to be returned.
279-
*
280273
* @throws E if the instance cannot be invalidated
281274
*/
282275
void invalidateObject(K key, V obj) throws E;
@@ -299,7 +292,6 @@ default List<K> getKeys() {
299292
* @param key the key used to obtain the object
300293
* @param obj a {@link #borrowObject borrowed} instance to be returned.
301294
* @param destroyMode destroy activation context provided to the factory
302-
*
303295
* @throws E if the instance cannot be invalidated
304296
* @since 2.9.0
305297
*/
@@ -316,7 +308,6 @@ default void invalidateObject(final K key, final V obj, final DestroyMode destro
316308
*
317309
* @param key the key used to obtain the object
318310
* @param obj a {@link #borrowObject borrowed} instance to be returned.
319-
*
320311
* @throws IllegalStateException
321312
* if an attempt is made to return an object to the pool that
322313
* is in any state other than allocated (i.e. borrowed).

src/main/java/org/apache/commons/pool3/KeyedPooledObjectFactory.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,9 @@
6868
*
6969
* @see KeyedObjectPool
7070
* @see BaseKeyedPooledObjectFactory
71-
*
7271
* @param <K> The type of keys managed by this factory.
7372
* @param <V> Type of element managed by this factory.
7473
* @param <E> Type of exception thrown by this factory.
75-
*
7674
* @since 2.0
7775
*/
7876
public interface KeyedPooledObjectFactory<K, V, E extends Exception> {
@@ -82,7 +80,6 @@ public interface KeyedPooledObjectFactory<K, V, E extends Exception> {
8280
*
8381
* @param key the key used when selecting the object
8482
* @param p a {@code PooledObject} wrapping the instance to be activated
85-
*
8683
* @throws E if there is a problem activating {@code obj},
8784
* this exception may be swallowed by the pool.
8885
*
@@ -104,7 +101,6 @@ public interface KeyedPooledObjectFactory<K, V, E extends Exception> {
104101
*
105102
* @param key the key used when selecting the instance
106103
* @param p a {@code PooledObject} wrapping the instance to be destroyed
107-
*
108104
* @throws E should be avoided as it may be swallowed by
109105
* the pool implementation.
110106
*
@@ -119,7 +115,6 @@ public interface KeyedPooledObjectFactory<K, V, E extends Exception> {
119115
* @param key the key used when selecting the instance
120116
* @param p a {@code PooledObject} wrapping the instance to be destroyed
121117
* @param destroyMode DestroyMode providing context to the factory
122-
*
123118
* @throws E should be avoided as it may be swallowed by
124119
* the pool implementation.
125120
*
@@ -138,7 +133,6 @@ default void destroyObject(final K key, final PooledObject<V> p, final DestroyMo
138133
* wrap it in a {@link PooledObject} to be managed by the pool.
139134
*
140135
* @param key the key used when constructing the object
141-
*
142136
* @return a {@code PooledObject} wrapping an instance that can
143137
* be served by the pool.
144138
*
@@ -152,7 +146,6 @@ default void destroyObject(final K key, final PooledObject<V> p, final DestroyMo
152146
*
153147
* @param key the key used when selecting the object
154148
* @param p a {@code PooledObject} wrapping the instance to be passivated
155-
*
156149
* @throws E if there is a problem passivating {@code obj},
157150
* this exception may be swallowed by the pool.
158151
*
@@ -165,7 +158,6 @@ default void destroyObject(final K key, final PooledObject<V> p, final DestroyMo
165158
*
166159
* @param key the key used when selecting the object
167160
* @param p a {@code PooledObject} wrapping the instance to be validated
168-
*
169161
* @return {@code false} if {@code obj} is not valid and should
170162
* be dropped from the pool, {@code true} otherwise.
171163
*/

src/main/java/org/apache/commons/pool3/ObjectPool.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,9 @@
5151
*
5252
* @param <T> Type of element pooled in this pool.
5353
* @param <E> Type of exception thrown by this pool.
54-
*
5554
* @see PooledObjectFactory
5655
* @see KeyedObjectPool
5756
* @see BaseObjectPool
58-
*
5957
* @since 2.0
6058
*/
6159
public interface ObjectPool<T, E extends Exception> extends Closeable {
@@ -111,7 +109,6 @@ default void addObjects(final int count) throws E {
111109
* </p>
112110
*
113111
* @return an instance from this pool.
114-
*
115112
* @throws IllegalStateException
116113
* after {@link #close close} has been called on this pool.
117114
* @throws E
@@ -177,7 +174,6 @@ default void addObjects(final int count) throws E {
177174
* </p>
178175
*
179176
* @param obj a {@link #borrowObject borrowed} instance to be disposed.
180-
*
181177
* @throws E if the instance cannot be invalidated
182178
*/
183179
void invalidateObject(T obj) throws E;
@@ -210,7 +206,6 @@ default void invalidateObject(final T obj, final DestroyMode destroyMode) throws
210206
* a related method as defined in an implementation or sub-interface.
211207
*
212208
* @param obj a {@link #borrowObject borrowed} instance to be returned.
213-
*
214209
* @throws IllegalStateException
215210
* if an attempt is made to return an object to the pool that
216211
* is in any state other than allocated (i.e. borrowed).

src/main/java/org/apache/commons/pool3/PooledObjectFactory.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,7 @@
6666
*
6767
* @param <T> Type of element managed in this factory.
6868
* @param <E> Type of exception thrown in this factory.
69-
*
7069
* @see ObjectPool
71-
*
7270
* @since 2.0
7371
*/
7472
public interface PooledObjectFactory<T, E extends Exception> {
@@ -77,7 +75,6 @@ public interface PooledObjectFactory<T, E extends Exception> {
7775
* Reinitializes an instance to be returned by the pool.
7876
*
7977
* @param p a {@code PooledObject} wrapping the instance to be activated
80-
*
8178
* @throws E if there is a problem activating {@code obj},
8279
* this exception may be swallowed by the pool.
8380
*
@@ -99,7 +96,6 @@ public interface PooledObjectFactory<T, E extends Exception> {
9996
* </p>
10097
*
10198
* @param p a {@code PooledObject} wrapping the instance to be destroyed
102-
*
10399
* @throws E should be avoided as it may be swallowed by
104100
* the pool implementation.
105101
*
@@ -114,7 +110,6 @@ public interface PooledObjectFactory<T, E extends Exception> {
114110
*
115111
* @param p a {@code PooledObject} wrapping the instance to be destroyed
116112
* @param destroyMode DestroyMode providing context to the factory
117-
*
118113
* @throws E should be avoided as it may be swallowed by
119114
* the pool implementation.
120115
*
@@ -133,7 +128,6 @@ default void destroyObject(final PooledObject<T> p, final DestroyMode destroyMod
133128
* {@link PooledObject} to be managed by the pool.
134129
*
135130
* @return a {@code PooledObject} wrapping an instance that can be served by the pool, not null.
136-
*
137131
* @throws E if there is a problem creating a new instance,
138132
* this will be propagated to the code requesting an object.
139133
*/
@@ -143,7 +137,6 @@ default void destroyObject(final PooledObject<T> p, final DestroyMode destroyMod
143137
* Uninitializes an instance to be returned to the idle object pool.
144138
*
145139
* @param p a {@code PooledObject} wrapping the instance to be passivated
146-
*
147140
* @throws E if there is a problem passivating {@code obj},
148141
* this exception may be swallowed by the pool.
149142
*
@@ -155,7 +148,6 @@ default void destroyObject(final PooledObject<T> p, final DestroyMode destroyMod
155148
* Ensures that the instance is safe to be returned by the pool.
156149
*
157150
* @param p a {@code PooledObject} wrapping the instance to be validated
158-
*
159151
* @return {@code false} if {@code obj} is not valid and should
160152
* be dropped from the pool, {@code true} otherwise.
161153
*/

src/main/java/org/apache/commons/pool3/UsageTracking.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
* more informed decisions and reporting to be made regarding abandoned objects.
2323
*
2424
* @param <T> The type of object provided by the pool.
25-
*
2625
* @since 2.0
2726
*/
2827
public interface UsageTracking<T> {

src/main/java/org/apache/commons/pool3/impl/BaseGenericObjectPool.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,6 @@ public final long getDestroyedCount() {
604604
* will be run.
605605
*
606606
* @return duration to sleep between evictor runs
607-
*
608607
* @see #setDurationBetweenEvictionRuns(Duration)
609608
* @since 2.11.0
610609
*/
@@ -628,7 +627,6 @@ public EvictionPolicy<T> getEvictionPolicy() {
628627
* used by this pool.
629628
*
630629
* @return The fully qualified class name of the {@link EvictionPolicy}
631-
*
632630
* @see #setEvictionPolicyClassName(String)
633631
*/
634632
public final String getEvictionPolicyClassName() {
@@ -889,7 +887,6 @@ public final long getMinEvictableIdleTimeMillis() {
889887
* tested per run.
890888
*
891889
* @return max number of objects to examine during each evictor run
892-
*
893890
* @see #setNumTestsPerEvictionRun
894891
* @see #setDurationBetweenEvictionRuns(Duration)
895892
*/
@@ -1060,7 +1057,6 @@ public final boolean getTestOnBorrow() {
10601057
* being returned from the {@code borrowObject()} method
10611058
*
10621059
* @see #setTestOnCreate
1063-
*
10641060
* @since 2.2
10651061
*/
10661062
public final boolean getTestOnCreate() {
@@ -1092,7 +1088,6 @@ public final boolean getTestOnReturn() {
10921088
* the pool and destroyed.
10931089
*
10941090
* @return {@code true} if objects will be validated by the evictor
1095-
*
10961091
* @see #setTestWhileIdle
10971092
* @see #setDurationBetweenEvictionRuns(Duration)
10981093
*/
@@ -1106,7 +1101,6 @@ public final boolean getTestWhileIdle() {
11061101
* will be run.
11071102
*
11081103
* @return number of milliseconds to sleep between evictor runs
1109-
*
11101104
* @see #setDurationBetweenEvictionRuns(Duration)
11111105
* @deprecated Use {@link #getDurationBetweenEvictionRuns()}.
11121106
*/
@@ -1227,7 +1221,6 @@ protected void markReturningState(final PooledObject<T> pooledObject) {
12271221
* Sets the abandoned object removal configuration.
12281222
*
12291223
* @param abandonedConfig the new configuration to use. This is used by value.
1230-
*
12311224
* @see AbandonedConfig
12321225
* @since 2.11.0
12331226
*/
@@ -1562,7 +1555,6 @@ public final void setTestOnBorrow(final boolean testOnBorrow) {
15621555
* {@code borrowObject()} method
15631556
*
15641557
* @see #getTestOnCreate
1565-
*
15661558
* @since 2.2
15671559
*/
15681560
public final void setTestOnCreate(final boolean testOnCreate) {

src/main/java/org/apache/commons/pool3/impl/BaseObjectPoolConfig.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ public abstract class BaseObjectPoolConfig<T> extends BaseObject implements Clon
9494
* The default value for the {@code testOnCreate} configuration attribute.
9595
* @see GenericObjectPool#getTestOnCreate()
9696
* @see GenericKeyedObjectPool#getTestOnCreate()
97-
*
9897
* @since 2.2
9998
*/
10099
public static final boolean DEFAULT_TEST_ON_CREATE = false;
@@ -424,7 +423,6 @@ public boolean getTestOnBorrow() {
424423
*
425424
* @see GenericObjectPool#getTestOnCreate()
426425
* @see GenericKeyedObjectPool#getTestOnCreate()
427-
*
428426
* @since 2.2
429427
*/
430428
public boolean getTestOnCreate() {
@@ -682,7 +680,6 @@ public void setTestOnBorrow(final boolean testOnBorrow) {
682680
*
683681
* @see GenericObjectPool#getTestOnCreate()
684682
* @see GenericKeyedObjectPool#getTestOnCreate()
685-
*
686683
* @since 2.2
687684
*/
688685
public void setTestOnCreate(final boolean testOnCreate) {

0 commit comments

Comments
 (0)