git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4088 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
fuchsi 2007-09-10 08:15:25 +00:00
parent 5b0c1449e1
commit 6601e37512

View File

@ -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();
}
}