7474 * </p>
7575 *
7676 * @see GenericKeyedObjectPool
77- *
7877 * @param <T> Type of element pooled in this pool.
79- *
8078 * @since 2.0
8179 */
8280public class GenericObjectPool <T > extends BaseGenericObjectPool <T >
@@ -187,7 +185,6 @@ public GenericObjectPool(final PooledObjectFactory<T> factory,
187185 * is null, this is a no-op (no exception, but no impact on the pool).
188186 *
189187 * @param p The object to make idle
190- *
191188 * @throws Exception If the factory fails to passivate the object
192189 */
193190 private void addIdleObject (final PooledObject <T > p ) throws Exception {
@@ -276,7 +273,6 @@ public T borrowObject() throws Exception {
276273 *
277274 * @param borrowMaxWaitDuration The time to wait for an object
278275 * to become available
279- *
280276 * @return object instance from the pool
281277 * @throws NoSuchElementException if an instance cannot be returned
282278 * @throws Exception if an object instance cannot be returned due to an error
@@ -414,11 +410,8 @@ private Duration durationSince(final Instant startInstant) {
414410 *
415411 * @param borrowMaxWaitMillis The time to wait in milliseconds for an object
416412 * to become available
417- *
418413 * @return object instance from the pool
419- *
420414 * @throws NoSuchElementException if an instance cannot be returned
421- *
422415 * @throws Exception if an object instance cannot be returned due to an
423416 * error
424417 */
@@ -597,7 +590,6 @@ private PooledObject<T> create(final Duration maxWaitDuration) throws Exception
597590 *
598591 * @param toDestroy The wrapped pooled object to destroy
599592 * @param destroyMode DestroyMode context provided to the factory
600- *
601593 * @throws Exception If the factory fails to destroy the pooled object
602594 * cleanly
603595 */
@@ -824,7 +816,6 @@ public String getFactoryType() {
824816 *
825817 * @return the maximum number of "idle" instances that can be held in the
826818 * pool or a negative value if there is no limit
827- *
828819 * @see #setMaxIdle
829820 */
830821 @ Override
@@ -844,7 +835,6 @@ public int getMaxIdle() {
844835 * </p>
845836 *
846837 * @return The minimum number of objects.
847- *
848838 * @see #setMinIdle(int)
849839 * @see #setMaxIdle(int)
850840 * @see #setDurationBetweenEvictionRuns(Duration)
@@ -1107,7 +1097,6 @@ public void returnObject(final T obj) {
11071097 * Sets the base pool configuration.
11081098 *
11091099 * @param conf the new configuration to use. This is used by value.
1110- *
11111100 * @see GenericObjectPoolConfig
11121101 */
11131102 public void setConfig (final GenericObjectPoolConfig <T > conf ) {
@@ -1130,7 +1119,6 @@ public void setConfig(final GenericObjectPoolConfig<T> conf) {
11301119 * The cap on the number of "idle" instances in the pool. Use a
11311120 * negative value to indicate an unlimited number of idle
11321121 * instances
1133- *
11341122 * @see #getMaxIdle
11351123 */
11361124 public void setMaxIdle (final int maxIdle ) {
@@ -1150,7 +1138,6 @@ public void setMaxIdle(final int maxIdle) {
11501138 *
11511139 * @param minIdle
11521140 * The minimum number of objects.
1153- *
11541141 * @see #getMinIdle()
11551142 * @see #getMaxIdle()
11561143 * @see #getDurationBetweenEvictionRuns()
0 commit comments