Lines 196-205
Link Here
|
196 |
public synchronized void clear() { |
196 |
public synchronized void clear() { |
197 |
assertOpen(); |
197 |
assertOpen(); |
198 |
if(null != _factory) { |
198 |
if(null != _factory) { |
199 |
Enumeration enum = _pool.elements(); |
199 |
Enumeration enum1 = _pool.elements(); |
200 |
while(enum.hasMoreElements()) { |
200 |
while(enum1.hasMoreElements()) { |
201 |
try { |
201 |
try { |
202 |
_factory.destroyObject(enum.nextElement()); |
202 |
_factory.destroyObject(enum1.nextElement()); |
203 |
} catch(Exception e) { |
203 |
} catch(Exception e) { |
204 |
// ignore error, keep destroying the rest |
204 |
// ignore error, keep destroying the rest |
205 |
} |
205 |
} |