Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
next development step: migration to java 1.7 This includes also a small code change to test generic type inference, a java 1.7 feature
orbiter39e191358536
diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefsindex 1928b0d75..82a665929 100644--- a/.settings/org.eclipse.jdt.core.prefs+++ b/.settings/org.eclipse.jdt.core.prefs@@ -6,9 +6,9 @@ org.eclipse.jdt.core.compiler.annotation.nonnullbydefault=org.eclipse.jdt.annotaorg.eclipse.jdt.core.compiler.annotation.nullable=org.eclipse.jdt.annotation.Nullableorg.eclipse.jdt.core.compiler.annotation.nullanalysis=disabledorg.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve-org.eclipse.jdt.core.compiler.compliance=1.6+org.eclipse.jdt.core.compiler.compliance=1.7org.eclipse.jdt.core.compiler.debug.lineNumber=generateorg.eclipse.jdt.core.compiler.debug.localVariable=generateorg.eclipse.jdt.core.compiler.debug.sourceFile=generate@@ -96,4 +96,4 @@ org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warningorg.eclipse.jdt.core.compiler.problem.unusedTypeParameter=ignoreorg.eclipse.jdt.core.compiler.problem.unusedWarningToken=warningorg.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning-org.eclipse.jdt.core.compiler.source=1.6+org.eclipse.jdt.core.compiler.source=1.7diff --git a/build.properties b/build.propertiesindex 7c9960e78..c96a472cf 100644--- a/build.properties+++ b/build.properties@@ -1,9 +1,9 @@# defining some compiler arguments-javacSource=1.6-javacTarget=1.6+javacSource=1.7+javacTarget=1.7# Release Configuration-releaseVersion=1.72+releaseVersion=1.73stdReleaseFile=yacy${branch}_v${releaseVersion}_${DSTAMP}_${releaseNr}.tar.gzsourceReleaseFile=yacy_src_v${releaseVersion}_${DSTAMP}_${releaseNr}.tar.gzreleaseFileParentDir=yacydiff --git a/source/net/yacy/cora/protocol/Domains.java b/source/net/yacy/cora/protocol/Domains.javaindex b8e987c97..dae80e7b2 100644--- a/source/net/yacy/cora/protocol/Domains.java+++ b/source/net/yacy/cora/protocol/Domains.java@@ -82,9 +82,9 @@ public class Domains {private static final int CONCURRENCY_LEVEL = Runtime.getRuntime().availableProcessors() * 2;// a dns cache- private static final ARC<String, InetAddress> NAME_CACHE_HIT = new ConcurrentARC<String, InetAddress>(MAX_NAME_CACHE_HIT_SIZE, CONCURRENCY_LEVEL);- private static final ARC<String, String> NAME_CACHE_MISS = new ConcurrentARC<String, String>(MAX_NAME_CACHE_MISS_SIZE, CONCURRENCY_LEVEL);- private static final ConcurrentHashMap<String, Object> LOOKUP_SYNC = new ConcurrentHashMap<String, Object>(100, 0.75f, Runtime.getRuntime().availableProcessors() * 2);+ private static final ARC<String, InetAddress> NAME_CACHE_HIT = new ConcurrentARC<>(MAX_NAME_CACHE_HIT_SIZE, CONCURRENCY_LEVEL);+ private static final ARC<String, String> NAME_CACHE_MISS = new ConcurrentARC<>(MAX_NAME_CACHE_MISS_SIZE, CONCURRENCY_LEVEL);+ private static final ConcurrentHashMap<String, Object> LOOKUP_SYNC = new ConcurrentHashMap<>(100, 0.75f, Runtime.getRuntime().availableProcessors() * 2);private static List<Pattern> nameCacheNoCachingPatterns = Collections.synchronizedList(new LinkedList<Pattern>());public static long cacheHit_Hit = 0, cacheHit_Miss = 0, cacheHit_Insert = 0; // for statistics only; do not writepublic static long cacheMiss_Hit = 0, cacheMiss_Miss = 0, cacheMiss_Insert = 0; // for statistics only; do not write