Skip to content

Commit f690413

Browse files
committed
Inline single use variable
1 parent 549e884 commit f690413

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1352,8 +1352,7 @@ public static <K, V> Map<K, TimerTask> checkMinIdle(
13521352
}
13531353
final Map<K, TimerTask> tasks = new HashMap<>(keys.size());
13541354
for (final K key : keys) {
1355-
final TimerTask task = checkMinIdle(keyedPool, key, minIdle, periodMillis);
1356-
tasks.put(key, task);
1355+
tasks.put(key, checkMinIdle(keyedPool, key, minIdle, periodMillis));
13571356
}
13581357
return tasks;
13591358
}

0 commit comments

Comments
 (0)