Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 79206 | Differences between
and this patch

Collapse All | Expand All

(-)src/java/org/apache/commons/pool/impl/StackObjectPool.java.orig (-3 / +3 lines)
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
                }
(-)src/java/org/apache/commons/pool/impl/StackKeyedObjectPool.java.orig (-3 / +3 lines)
Lines 235-244 Link Here
235
            return;
235
            return;
236
        } else {
236
        } else {
237
            if(null != _factory) {
237
            if(null != _factory) {
238
                Enumeration enum = stack.elements();
238
                Enumeration enum1 = stack.elements();
239
                while(enum.hasMoreElements()) {
239
                while(enum1.hasMoreElements()) {
240
                    try {
240
                    try {
241
                        _factory.destroyObject(key,enum.nextElement());
241
                        _factory.destroyObject(key,enum1.nextElement());
242
                    } catch(Exception e) {
242
                    } catch(Exception e) {
243
                        // ignore error, keep destroying the rest
243
                        // ignore error, keep destroying the rest
244
                    }
244
                    }

Return to bug 79206