Skip to content

Commit 9524f96

Browse files
kazuki43zoosnicoll
authored andcommitted
Fix default value of CommonsPool2TargetSource#maxWait
Issue: SPR-13350
1 parent 44a7c78 commit 9524f96

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

spring-aop/src/main/java/org/springframework/aop/target/CommonsPool2TargetSource.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
* @author Rob Harrop
5050
* @author Juergen Hoeller
5151
* @author Stephane Nicoll
52+
* @author Kazuki Shimizu
5253
* @since 4.2
5354
* @see GenericObjectPool
5455
* @see #createObjectPool()
@@ -66,7 +67,7 @@ public class CommonsPool2TargetSource extends AbstractPoolingTargetSource implem
6667

6768
private int minIdle = GenericObjectPoolConfig.DEFAULT_MIN_IDLE;
6869

69-
private long maxWait = GenericObjectPoolConfig.DEFAULT_MAX_TOTAL;
70+
private long maxWait = GenericObjectPoolConfig.DEFAULT_MAX_WAIT_MILLIS;
7071

7172
private long timeBetweenEvictionRunsMillis = GenericObjectPoolConfig.DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS;
7273

@@ -126,7 +127,7 @@ public int getMinIdle() {
126127
/**
127128
* Set the maximum waiting time for fetching an object from the pool.
128129
* Default is -1, waiting forever.
129-
* @see GenericObjectPool#setMaxTotal
130+
* @see GenericObjectPool#setMaxWaitMillis
130131
*/
131132
public void setMaxWait(long maxWait) {
132133
this.maxWait = maxWait;

0 commit comments

Comments
 (0)