Skip to content

Commit dedd647

Browse files
committed
Also remove old, unsafe loop.
1 parent 1bf82a6 commit dedd647

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,6 @@ public void run() {
8787
iterator.remove();
8888
}
8989
}
90-
91-
for (final Entry<WeakReference<BaseGenericObjectPool<?, ?>.Evictor>, WeakRunner<BaseGenericObjectPool<?, ?>.Evictor>> entry : TASK_MAP
92-
.entrySet()) {
93-
if (entry.getKey().get() == null) {
94-
executor.remove(entry.getValue());
95-
TASK_MAP.remove(entry.getKey());
96-
}
97-
}
9890
if (TASK_MAP.isEmpty() && executor != null) {
9991
executor.shutdown();
10092
executor.setCorePoolSize(0);

0 commit comments

Comments
 (0)