Skip to content

Commit 4d7dbfe

Browse files
committed
Javadoc: Use {@value} in constant descriptions
1 parent 5bd618c commit 4d7dbfe

File tree

3 files changed

+29
-22
lines changed

3 files changed

+29
-22
lines changed

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

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -33,23 +33,23 @@
3333
public abstract class BaseObjectPoolConfig<T> extends BaseObject implements Cloneable {
3434

3535
/**
36-
* The default value for the {@code lifo} configuration attribute.
36+
* The default value for the {@code lifo} configuration attribute: {@value}.
3737
*
3838
* @see GenericObjectPool#getLifo()
3939
* @see GenericKeyedObjectPool#getLifo()
4040
*/
4141
public static final boolean DEFAULT_LIFO = true;
4242

4343
/**
44-
* The default value for the {@code fairness} configuration attribute.
44+
* The default value for the {@code fairness} configuration attribute: {@value}.
4545
*
4646
* @see GenericObjectPool#getFairness()
4747
* @see GenericKeyedObjectPool#getFairness()
4848
*/
4949
public static final boolean DEFAULT_FAIRNESS = false;
5050

5151
/**
52-
* The default value for the {@code maxWait} configuration attribute.
52+
* The default value for the {@code maxWait} configuration attribute: {@value}.
5353
*
5454
* @see GenericObjectPool#getMaxWaitDuration()
5555
* @see GenericKeyedObjectPool#getMaxWaitDuration()
@@ -68,7 +68,7 @@ public abstract class BaseObjectPoolConfig<T> extends BaseObject implements Clon
6868
public static final Duration DEFAULT_MAX_WAIT = Duration.ofMillis(DEFAULT_MAX_WAIT_MILLIS);
6969

7070
/**
71-
* The default value for the {@code minEvictableIdleDuration} configuration attribute.
71+
* The default value for the {@code minEvictableIdleDuration} configuration attribute: {@value}.
7272
*
7373
* @see GenericObjectPool#getMinEvictableIdleDuration()
7474
* @see GenericKeyedObjectPool#getMinEvictableIdleDuration()
@@ -98,7 +98,7 @@ public abstract class BaseObjectPoolConfig<T> extends BaseObject implements Clon
9898
public static final Duration DEFAULT_MIN_EVICTABLE_IDLE_TIME = Duration.ofMillis(DEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLIS);
9999

100100
/**
101-
* The default value for the {@code softMinEvictableIdleTime} configuration attribute.
101+
* The default value for the {@code softMinEvictableIdleTime} configuration attribute: {@value}.
102102
*
103103
* @see GenericObjectPool#getSoftMinEvictableIdleDuration()
104104
* @see GenericKeyedObjectPool#getSoftMinEvictableIdleDuration()
@@ -128,7 +128,7 @@ public abstract class BaseObjectPoolConfig<T> extends BaseObject implements Clon
128128
public static final Duration DEFAULT_SOFT_MIN_EVICTABLE_IDLE_DURATION = Duration.ofMillis(DEFAULT_SOFT_MIN_EVICTABLE_IDLE_TIME_MILLIS);
129129

130130
/**
131-
* The default value for {@code evictorShutdownTimeout} configuration attribute.
131+
* The default value for {@code evictorShutdownTimeout} configuration attribute: {@value}.
132132
*
133133
* @see GenericObjectPool#getEvictorShutdownTimeoutDuration()
134134
* @see GenericKeyedObjectPool#getEvictorShutdownTimeoutDuration()
@@ -147,15 +147,15 @@ public abstract class BaseObjectPoolConfig<T> extends BaseObject implements Clon
147147
public static final Duration DEFAULT_EVICTOR_SHUTDOWN_TIMEOUT = Duration.ofMillis(DEFAULT_EVICTOR_SHUTDOWN_TIMEOUT_MILLIS);
148148

149149
/**
150-
* The default value for the {@code numTestsPerEvictionRun} configuration attribute.
150+
* The default value for the {@code numTestsPerEvictionRun} configuration attribute: {@value}.
151151
*
152152
* @see GenericObjectPool#getNumTestsPerEvictionRun()
153153
* @see GenericKeyedObjectPool#getNumTestsPerEvictionRun()
154154
*/
155155
public static final int DEFAULT_NUM_TESTS_PER_EVICTION_RUN = 3;
156156

157157
/**
158-
* The default value for the {@code testOnCreate} configuration attribute.
158+
* The default value for the {@code testOnCreate} configuration attribute: {@value}.
159159
*
160160
* @see GenericObjectPool#getTestOnCreate()
161161
* @see GenericKeyedObjectPool#getTestOnCreate()
@@ -165,31 +165,31 @@ public abstract class BaseObjectPoolConfig<T> extends BaseObject implements Clon
165165
public static final boolean DEFAULT_TEST_ON_CREATE = false;
166166

167167
/**
168-
* The default value for the {@code testOnBorrow} configuration attribute.
168+
* The default value for the {@code testOnBorrow} configuration attribute: {@value}.
169169
*
170170
* @see GenericObjectPool#getTestOnBorrow()
171171
* @see GenericKeyedObjectPool#getTestOnBorrow()
172172
*/
173173
public static final boolean DEFAULT_TEST_ON_BORROW = false;
174174

175175
/**
176-
* The default value for the {@code testOnReturn} configuration attribute.
176+
* The default value for the {@code testOnReturn} configuration attribute: {@value}.
177177
*
178178
* @see GenericObjectPool#getTestOnReturn()
179179
* @see GenericKeyedObjectPool#getTestOnReturn()
180180
*/
181181
public static final boolean DEFAULT_TEST_ON_RETURN = false;
182182

183183
/**
184-
* The default value for the {@code testWhileIdle} configuration attribute.
184+
* The default value for the {@code testWhileIdle} configuration attribute: {@value}.
185185
*
186186
* @see GenericObjectPool#getTestWhileIdle()
187187
* @see GenericKeyedObjectPool#getTestWhileIdle()
188188
*/
189189
public static final boolean DEFAULT_TEST_WHILE_IDLE = false;
190190

191191
/**
192-
* The default value for the {@code timeBetweenEvictionRuns} configuration attribute.
192+
* The default value for the {@code timeBetweenEvictionRuns} configuration attribute: {@value}.
193193
*
194194
* @see GenericObjectPool#getDurationBetweenEvictionRuns()
195195
* @see GenericKeyedObjectPool#getDurationBetweenEvictionRuns()
@@ -218,20 +218,20 @@ public abstract class BaseObjectPoolConfig<T> extends BaseObject implements Clon
218218
public static final Duration DEFAULT_TIME_BETWEEN_EVICTION_RUNS = Duration.ofMillis(DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS);
219219

220220
/**
221-
* The default value for the {@code blockWhenExhausted} configuration attribute.
221+
* The default value for the {@code blockWhenExhausted} configuration attribute: {@value}.
222222
*
223223
* @see GenericObjectPool#getBlockWhenExhausted()
224224
* @see GenericKeyedObjectPool#getBlockWhenExhausted()
225225
*/
226226
public static final boolean DEFAULT_BLOCK_WHEN_EXHAUSTED = true;
227227

228228
/**
229-
* The default value for enabling JMX for pools created with a configuration instance.
229+
* The default value for enabling JMX for pools created with a configuration instance: {@value}.
230230
*/
231231
public static final boolean DEFAULT_JMX_ENABLE = true;
232232

233233
/**
234-
* The default value for the prefix used to name JMX enabled pools created with a configuration instance.
234+
* The default value for the prefix used to name JMX enabled pools created with a configuration instance: {@value}.
235235
*
236236
* @see GenericObjectPool#getJmxName()
237237
* @see GenericKeyedObjectPool#getJmxName()

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

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,25 +31,29 @@
3131
public class GenericKeyedObjectPoolConfig<T> extends BaseObjectPoolConfig<T> {
3232

3333
/**
34-
* The default value for the {@code maxTotalPerKey} configuration attribute.
34+
* The default value for the {@code maxTotalPerKey} configuration attribute: {@value}.
35+
*
3536
* @see GenericKeyedObjectPool#getMaxTotalPerKey()
3637
*/
3738
public static final int DEFAULT_MAX_TOTAL_PER_KEY = 8;
3839

3940
/**
40-
* The default value for the {@code maxTotal} configuration attribute.
41+
* The default value for the {@code maxTotal} configuration attribute: {@value}.
42+
*
4143
* @see GenericKeyedObjectPool#getMaxTotal()
4244
*/
4345
public static final int DEFAULT_MAX_TOTAL = -1;
4446

4547
/**
46-
* The default value for the {@code minIdlePerKey} configuration attribute.
48+
* The default value for the {@code minIdlePerKey} configuration attribute: {@value}.
49+
*
4750
* @see GenericKeyedObjectPool#getMinIdlePerKey()
4851
*/
4952
public static final int DEFAULT_MIN_IDLE_PER_KEY = 0;
5053

5154
/**
52-
* The default value for the {@code maxIdlePerKey} configuration attribute.
55+
* The default value for the {@code maxIdlePerKey} configuration attribute: {@value}.
56+
*
5357
* @see GenericKeyedObjectPool#getMaxIdlePerKey()
5458
*/
5559
public static final int DEFAULT_MAX_IDLE_PER_KEY = 8;

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,22 @@
3131
public class GenericObjectPoolConfig<T> extends BaseObjectPoolConfig<T> {
3232

3333
/**
34-
* The default value for the {@code maxTotal} configuration attribute.
34+
* The default value for the {@code maxTotal} configuration attribute: {@value}.
35+
*
3536
* @see GenericObjectPool#getMaxTotal()
3637
*/
3738
public static final int DEFAULT_MAX_TOTAL = 8;
3839

3940
/**
40-
* The default value for the {@code maxIdle} configuration attribute.
41+
* The default value for the {@code maxIdle} configuration attribute: {@value}.
42+
*
4143
* @see GenericObjectPool#getMaxIdle()
4244
*/
4345
public static final int DEFAULT_MAX_IDLE = 8;
4446

4547
/**
46-
* The default value for the {@code minIdle} configuration attribute.
48+
* The default value for the {@code minIdle} configuration attribute: {@value}.
49+
*
4750
* @see GenericObjectPool#getMinIdle()
4851
*/
4952
public static final int DEFAULT_MIN_IDLE = 0;

0 commit comments

Comments
 (0)