git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4088 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
fuchsi 18 years ago
parent 5b0c1449e1
commit 6601e37512

@ -118,10 +118,14 @@ public abstract class abstractURLPattern implements plasmaURLPattern {
}
public void clear() {
Iterator iter = this.hostpaths.keySet().iterator();
Iterator iter = this.hostpaths.values().iterator();
Iterator cIter = this.cachedUrlHashs.values().iterator();
while (iter.hasNext()) {
HashMap blacklistMap = (HashMap) this.hostpaths.get(iter.next());
blacklistMap.clear();
((HashMap) iter.next()).clear();
}
while (cIter.hasNext()) {
// clear caches as well to avoid wrong/outdated matches after changing lists
((Set) cIter.next()).clear();
}
}

Loading…
Cancel
Save