View | Details | Raw Unified | Return to bug 53821
Collapse All | Expand All

(-)src/main/org/apache/tools/ant/util/IdentityStack.java (+10 lines)
Lines 17-22 Link Here
17
 */
17
 */
18
package org.apache.tools.ant.util;
18
package org.apache.tools.ant.util;
19
19
20
import java.util.Collection;
21
import java.util.HashSet;
22
import java.util.Set;
20
import java.util.Stack;
23
import java.util.Stack;
21
24
22
/**
25
/**
Lines 101-105 Link Here
101
        }
104
        }
102
        return -1;
105
        return -1;
103
    }
106
    }
107
    
108
    public synchronized boolean removeAll(Collection<?> c) {
109
        if (!(c instanceof Set)) {
110
            c = new HashSet(c);
111
        }
112
        return super.removeAll(c);
113
    }
104
114
105
}
115
}

Return to bug 53821