Skip to content

Commit 0ebaef0

Browse files
committed
Javadoc: Empty Javadoc line before the 1st tag.
1 parent 551cd41 commit 0ebaef0

File tree

8 files changed

+29
-0
lines changed

8 files changed

+29
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ default List<K> getKeys() {
225225
* Gets the total number of instances currently borrowed from this pool but
226226
* not yet returned. Returns a negative value if this information is not
227227
* available.
228+
*
228229
* @return the total number of instances currently borrowed from this pool but
229230
* not yet returned.
230231
*/
@@ -244,6 +245,7 @@ default List<K> getKeys() {
244245
/**
245246
* Gets the total number of instances currently idle in this pool.
246247
* Returns a negative value if this information is not available.
248+
*
247249
* @return the total number of instances currently idle in this pool.
248250
*/
249251
int getNumIdle();

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ default void addObjects(final int count) throws Exception {
149149
/**
150150
* Gets the number of instances currently borrowed from this pool. Returns
151151
* a negative value if this information is not available.
152+
*
152153
* @return the number of instances currently borrowed from this pool.
153154
*/
154155
int getNumActive();
@@ -158,6 +159,7 @@ default void addObjects(final int count) throws Exception {
158159
* considered an approximation of the number of objects that can be
159160
* {@link #borrowObject borrowed} without creating any new instances.
160161
* Returns a negative value if this information is not available.
162+
*
161163
* @return the number of instances currently idle in this pool.
162164
*/
163165
int getNumIdle();

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ final class EvictionIterator implements Iterator<PooledObject<T>> {
7272

7373
/**
7474
* Constructs an EvictionIterator for the provided idle instance deque.
75+
*
7576
* @param idleObjects underlying deque.
7677
*/
7778
EvictionIterator(final Deque<PooledObject<T>> idleObjects) {
@@ -86,6 +87,7 @@ final class EvictionIterator implements Iterator<PooledObject<T>> {
8687

8788
/**
8889
* Gets the idle object deque referenced by this iterator.
90+
*
8991
* @return the idle object deque
9092
*/
9193
public Deque<PooledObject<T>> getIdleObjects() {
@@ -459,6 +461,7 @@ String appendStats(final String string) {
459461

460462
/**
461463
* Verifies that the pool is open.
464+
*
462465
* @throws IllegalStateException if the pool is closed.
463466
*/
464467
final void assertOpen() throws IllegalStateException {
@@ -476,6 +479,7 @@ final void assertOpen() throws IllegalStateException {
476479

477480
/**
478481
* Creates a list of pooled objects to remove based on their state.
482+
*
479483
* @param abandonedConfig The abandoned configuration.
480484
* @param allObjects PooledObject instances to consider.
481485
* @return a list of pooled objects to remove based on their state.
@@ -508,6 +512,7 @@ final Duration durationSince(final Instant startInstant) {
508512
/**
509513
* Tries to ensure that the configured minimum number of idle instances are
510514
* available in the pool.
515+
*
511516
* @throws Exception if an error occurs creating idle instances
512517
*/
513518
abstract void ensureMinIdle() throws Exception;
@@ -541,6 +546,7 @@ public final boolean getBlockWhenExhausted() {
541546
/**
542547
* Gets the total number of objects successfully borrowed from this pool over the
543548
* lifetime of the pool.
549+
*
544550
* @return the borrowed object count
545551
*/
546552
public final long getBorrowedCount() {
@@ -564,6 +570,7 @@ public boolean getCollectDetailedStatistics() {
564570
/**
565571
* Gets the total number of objects created for this pool over the lifetime of
566572
* the pool.
573+
*
567574
* @return the created object count
568575
*/
569576
public final long getCreatedCount() {
@@ -576,6 +583,7 @@ public final long getCreatedCount() {
576583
* deregistered when no longer used by calling the {@link #close()} method.
577584
* This method is provided to assist with identifying code that creates but
578585
* does not close it thereby creating a memory leak.
586+
*
579587
* @return pool creation stack trace
580588
*/
581589
public final String getCreationStackTrace() {
@@ -586,6 +594,7 @@ public final String getCreationStackTrace() {
586594
* Gets the total number of objects destroyed by this pool as a result of failing
587595
* validation during {@code borrowObject()} over the lifetime of the
588596
* pool.
597+
*
589598
* @return validation destroyed object count
590599
*/
591600
public final long getDestroyedByBorrowValidationCount() {
@@ -595,6 +604,7 @@ public final long getDestroyedByBorrowValidationCount() {
595604
/**
596605
* Gets the total number of objects destroyed by the evictor associated with this
597606
* pool over the lifetime of the pool.
607+
*
598608
* @return the evictor destroyed object count
599609
*/
600610
public final long getDestroyedByEvictorCount() {
@@ -604,6 +614,7 @@ public final long getDestroyedByEvictorCount() {
604614
/**
605615
* Gets the total number of objects destroyed by this pool over the lifetime of
606616
* the pool.
617+
*
607618
* @return the destroyed object count
608619
*/
609620
public final long getDestroyedCount() {
@@ -702,6 +713,7 @@ public final boolean getFairness() {
702713
* Gets the name under which the pool has been registered with the
703714
* platform MBean server or {@code null} if the pool has not been
704715
* registered.
716+
*
705717
* @return the JMX name
706718
*/
707719
public final ObjectName getJmxName() {
@@ -813,6 +825,7 @@ public final long getMaxWaitMillis() {
813825
/**
814826
* Gets the mean time objects are active for based on the last {@link
815827
* #MEAN_TIMING_STATS_CACHE_SIZE} objects returned to the pool.
828+
*
816829
* @return mean time an object has been checked out from the pool among
817830
* recently returned objects.
818831
*
@@ -825,6 +838,7 @@ public final Duration getMeanActiveDuration() {
825838
/**
826839
* Gets the mean time objects are active for based on the last {@link
827840
* #MEAN_TIMING_STATS_CACHE_SIZE} objects returned to the pool.
841+
*
828842
* @return mean time an object has been checked out from the pool among
829843
* recently returned objects.
830844
*
@@ -955,6 +969,7 @@ public final long getMinEvictableIdleTimeMillis() {
955969

956970
/**
957971
* Gets the number of instances currently idle in this pool.
972+
*
958973
* @return count of instances available for checkout from the pool
959974
*/
960975
public abstract int getNumIdle();
@@ -1042,6 +1057,7 @@ public Duration getRemoveAbandonedTimeoutDuration() {
10421057
* Gets the total number of objects returned to this pool over the lifetime of
10431058
* the pool. This excludes attempts to return the same object multiple
10441059
* times.
1060+
*
10451061
* @return the returned object count
10461062
*/
10471063
public final long getReturnedCount() {
@@ -1113,6 +1129,7 @@ public final long getSoftMinEvictableIdleTimeMillis() {
11131129

11141130
/**
11151131
* Gets the stack trace of an exception as a string.
1132+
*
11161133
* @param e exception to trace
11171134
* @return exception stack trace as a string
11181135
*/
@@ -1348,6 +1365,7 @@ final void jmxUnregister() {
13481365

13491366
/**
13501367
* Marks the object as returning to the pool.
1368+
*
13511369
* @param pooledObject instance to return to the keyed pool
13521370
*/
13531371
protected void markReturningState(final PooledObject<T> pooledObject) {

src/main/java/org/apache/commons/pool2/impl/DefaultPooledObject.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ public long getActiveTimeMillis() {
142142

143143
/**
144144
* Gets the number of times this object has been borrowed.
145+
*
145146
* @return The number of times this object has been borrowed.
146147
* @since 2.1
147148
*/
@@ -237,6 +238,7 @@ public T getObject() {
237238

238239
/**
239240
* Gets the state of this object.
241+
*
240242
* @return state
241243
*/
242244
@Override

src/main/java/org/apache/commons/pool2/impl/EvictionTimer.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ public void run() {
9999
/**
100100
* Runnable that runs the referent of a weak reference. When the referent is no
101101
* no longer reachable, run is no-op.
102+
*
102103
* @param <R> The kind of Runnable.
103104
*/
104105
private static final class WeakRunner<R extends Runnable> implements Runnable {

src/main/java/org/apache/commons/pool2/impl/GenericKeyedObjectPool.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ private static final class ObjectDeque<S> {
125125

126126
/**
127127
* Constructs a new ObjectDeque with the given fairness policy.
128+
*
128129
* @param fairness true means client threads waiting to borrow / return instances
129130
* will be served as if waiting in a FIFO queue.
130131
*/
@@ -249,6 +250,7 @@ public String toString() {
249250
/**
250251
* Constructs a new {@code GenericKeyedObjectPool} using defaults from
251252
* {@link GenericKeyedObjectPoolConfig}.
253+
*
252254
* @param factory the factory to be used to create entries
253255
*/
254256
public GenericKeyedObjectPool(final KeyedPooledObjectFactory<K, T> factory) {

src/main/java/org/apache/commons/pool2/impl/LinkedBlockingDeque.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ private static final class Node<E> {
329329
/**
330330
* Creates a {@code LinkedBlockingDeque} with a capacity of
331331
* {@link Integer#MAX_VALUE} and the given fairness policy.
332+
*
332333
* @param fairness true means threads waiting on the deque should be served
333334
* as if waiting in a FIFO request queue
334335
*/

src/main/java/org/apache/commons/pool2/impl/SoftReferenceObjectPool.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,7 @@ private void pruneClearedReferences() {
353353

354354
/**
355355
* Clears cleared references from iterator's collection
356+
*
356357
* @param iterator iterator over idle/allReferences
357358
*/
358359
private void removeClearedReferences(final Iterator<PooledSoftReference<T>> iterator) {

0 commit comments

Comments
 (0)