Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

*) Fix wrong class cast in indexSize()

hermens4f43816ec049
diff --git a/source/de/anomic/plasma/plasmaWordIndexCache.java b/source/de/anomic/plasma/plasmaWordIndexCache.java
index 2577d13a7..4a85caf45 100644
--- a/source/de/anomic/plasma/plasmaWordIndexCache.java
+++ b/source/de/anomic/plasma/plasmaWordIndexCache.java
@@ -268,7 +268,7 @@ public final class plasmaWordIndexCache implements plasmaWordIndexInterface {
}
} catch (IOException e) {}
size += assortmentCluster.indexSize(wordHash);
- TreeMap cacheIndex = (TreeMap) cache.get(wordHash);
+ plasmaWordIndexEntryContainer cacheIndex = (plasmaWordIndexEntryContainer) cache.get(wordHash);
if (cacheIndex != null) size += cacheIndex.size();
return size;
}