Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
Small change (generics)
borg-0300bfe171e6938a
diff --git a/source/de/anomic/yacy/yacyCore.java b/source/de/anomic/yacy/yacyCore.javaindex 14e2749bd..51ba2d253 100644--- a/source/de/anomic/yacy/yacyCore.java+++ b/source/de/anomic/yacy/yacyCore.java@@ -83,7 +83,7 @@ public class yacyCore {public static final ThreadGroup publishThreadGroup = new ThreadGroup("publishThreadGroup");public static yacySeedDB seedDB;public static yacyNewsPool newsPool;- public static final HashMap seedUploadMethods = new HashMap();+ public static final HashMap<String, String> seedUploadMethods = new HashMap<String, String>();public static yacyPeerActions peerActions;public static yacyDHTAction dhtAgent;public static serverLog log;@@ -91,7 +91,7 @@ public class yacyCore {/** pseudo-random key derived from a time-interval while YaCy startup. */public static long speedKey;public static File yacyDBPath;- public static final Map amIAccessibleDB = Collections.synchronizedMap(new HashMap()); // Holds PeerHash / yacyAccessible Relations+ public static final Map<String, yacyAccessible> amIAccessibleDB = Collections.synchronizedMap(new HashMap<String, yacyAccessible>()); // Holds PeerHash / yacyAccessible Relations// constants for PeerPing behaviourprivate static final int PING_INITIAL = 64;private static final int PING_MIN_LASTSEEN = 240000; // in milliseconds@@ -484,7 +484,7 @@ public class yacyCore {dbSize = amIAccessibleDB.size();final Iterator<String> ai = amIAccessibleDB.keySet().iterator();while (ai.hasNext()) {- final yacyAccessible ya = (yacyAccessible) amIAccessibleDB.get(ai.next());+ final yacyAccessible ya = amIAccessibleDB.get(ai.next());if (ya.lastUpdated < cutofftime) {ai.remove();} else {