Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
*) set SVN properties *) minor changes
low0123b40b982564c
diff --git a/source/de/anomic/crawler/RSSLoader.java b/source/de/anomic/crawler/RSSLoader.javaindex f1f8637eb..d40ba7c88 100644--- a/source/de/anomic/crawler/RSSLoader.java+++ b/source/de/anomic/crawler/RSSLoader.java@@ -3,6 +3,10 @@* Copyright 2010 by Michael Peter Christen, [email protected], Frankfurt a. M., Germany* First released 27.8.2010 at http://yacy.net*+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$+ ** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; eitherdiff --git a/source/de/anomic/crawler/retrieval/FTPLoader.java b/source/de/anomic/crawler/retrieval/FTPLoader.javaindex 807b48ff0..1775ed83c 100644--- a/source/de/anomic/crawler/retrieval/FTPLoader.java+++ b/source/de/anomic/crawler/retrieval/FTPLoader.java@@ -7,9 +7,9 @@//// This file ist contributed by Martin Thelian//-// $LastChangedDate: 2006-02-20 23:57:42 +0100 (Mo, 20 Feb 2006) $-// $LastChangedRevision: 1715 $-// $LastChangedBy: theli $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// This program is free software; you can redistribute it and/or modify// it under the terms of the GNU General Public License as published bydiff --git a/source/de/anomic/crawler/retrieval/FileLoader.java b/source/de/anomic/crawler/retrieval/FileLoader.javaindex 2bf835774..1c3cc2be7 100644--- a/source/de/anomic/crawler/retrieval/FileLoader.java+++ b/source/de/anomic/crawler/retrieval/FileLoader.java@@ -2,7 +2,11 @@* FileLoader* Copyright 2010 by Michael Peter Christen* First released 25.5.2010 at http://yacy.net- *+ *+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$+ ** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; eitherdiff --git a/source/de/anomic/crawler/retrieval/SMBLoader.java b/source/de/anomic/crawler/retrieval/SMBLoader.javaindex 2f46d5a3c..f707dad9a 100644--- a/source/de/anomic/crawler/retrieval/SMBLoader.java+++ b/source/de/anomic/crawler/retrieval/SMBLoader.java@@ -4,9 +4,9 @@//// This is a part of YaCy, a peer-to-peer based search engine//-// $LastChangedDate: 2010-03-07 00:41:51 +0100 (So, 07 Mrz 2010) $-// $LastChangedRevision: 6719 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//diff --git a/source/de/anomic/data/WorkTables.java b/source/de/anomic/data/WorkTables.javaindex 849394cbd..cf6c0a460 100644--- a/source/de/anomic/data/WorkTables.java+++ b/source/de/anomic/data/WorkTables.java@@ -4,9 +4,9 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2006-04-02 22:40:07 +0200 (So, 02 Apr 2006) $-// $LastChangedRevision: 6539 $-// $LastChangedBy: low012 $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//@@ -87,6 +87,7 @@ public class WorkTables extends Tables {this.bookmarks = new YMarkTables(this);}+ @Overridepublic void clear(final String tablename) throws IOException {super.clear(tablename);this.bookmarks.clearIndex(tablename);diff --git a/source/de/anomic/net/UPnP.java b/source/de/anomic/net/UPnP.javaindex 1f07990c6..7715501df 100644--- a/source/de/anomic/net/UPnP.java+++ b/source/de/anomic/net/UPnP.java@@ -4,9 +4,9 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: $-// $LastChangedRevision: $-// $LastChangedBy: $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//diff --git a/source/de/anomic/net/whois.java b/source/de/anomic/net/whois.javaindex 53cc71bc4..6154a86a0 100644--- a/source/de/anomic/net/whois.java+++ b/source/de/anomic/net/whois.java@@ -3,7 +3,10 @@// (C) by Michael Peter Christen; [email protected]// first published on http://www.anomic.de// Frankfurt, Germany, 2005-// last major change: 22.03.2005+//+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// This program is free software; you can redistribute it and/or modify// it under the terms of the GNU General Public License as published bydiff --git a/source/de/anomic/search/AccessTracker.java b/source/de/anomic/search/AccessTracker.javaindex febdefa14..863b845d5 100644--- a/source/de/anomic/search/AccessTracker.java+++ b/source/de/anomic/search/AccessTracker.java@@ -4,6 +4,10 @@* Copyright 2009 by Michael Peter Christen, [email protected], Frankfurt a. M., Germany* First released 29.08.2009 at http://yacy.net*+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$+ ** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; eitherdiff --git a/source/de/anomic/search/ContentDomain.java b/source/de/anomic/search/ContentDomain.javaindex f4271214e..c75efe4af 100644--- a/source/de/anomic/search/ContentDomain.java+++ b/source/de/anomic/search/ContentDomain.java@@ -20,11 +20,11 @@ public enum ContentDomain {}public static ContentDomain contentdomParser(final String dom) {- if (dom.equals("text")) return TEXT;- else if (dom.equals("image")) return IMAGE;- else if (dom.equals("audio")) return AUDIO;- else if (dom.equals("video")) return VIDEO;- else if (dom.equals("app")) return APP;+ if ("text".equals(dom)) return TEXT;+ else if ("image".equals(dom)) return IMAGE;+ else if ("audio".equals(dom)) return AUDIO;+ else if ("video".equals(dom)) return VIDEO;+ else if ("app".equals(dom)) return APP;return TEXT;}diff --git a/source/de/anomic/search/DocumentIndex.java b/source/de/anomic/search/DocumentIndex.javaindex 0ece72015..df3b4eae5 100644--- a/source/de/anomic/search/DocumentIndex.java+++ b/source/de/anomic/search/DocumentIndex.java@@ -4,9 +4,9 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2009-05-28 01:51:34 +0200 (Do, 28 Mai 2009) $-// $LastChangedRevision: 5988 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//@@ -86,6 +86,7 @@ public class DocumentIndex extends Segment {super(workerThreadGroup, "query-" + count);}+ @Overridepublic void run() {DigestURI f;URIMetadataRow resultRow;@@ -214,6 +215,7 @@ public class DocumentIndex extends Segment {* close the index.* This terminates all worker threads and then closes the segment.*/+ @Overridepublic void close() {// send termination signal to worker threadsfor (int i = 0; i < this.worker.length; i++) {diff --git a/source/de/anomic/search/MetadataRepository.java b/source/de/anomic/search/MetadataRepository.javaindex 4232a6b8c..91ccd87d4 100644--- a/source/de/anomic/search/MetadataRepository.java+++ b/source/de/anomic/search/MetadataRepository.java@@ -4,9 +4,9 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2006-04-02 22:40:07 +0200 (So, 02 Apr 2006) $-// $LastChangedRevision: 1986 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//diff --git a/source/de/anomic/search/Segment.java b/source/de/anomic/search/Segment.javaindex fac953c69..39563d592 100644--- a/source/de/anomic/search/Segment.java+++ b/source/de/anomic/search/Segment.java@@ -4,9 +4,9 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2009-05-28 01:51:34 +0200 (Do, 28 Mai 2009) $-// $LastChangedRevision: 5988 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//diff --git a/source/de/anomic/search/Segments.java b/source/de/anomic/search/Segments.javaindex 5e9aaf63e..c44cc8862 100644--- a/source/de/anomic/search/Segments.java+++ b/source/de/anomic/search/Segments.java@@ -4,9 +4,9 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2009-05-28 01:51:34 +0200 (Do, 28 Mai 2009) $-// $LastChangedRevision: 5988 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//diff --git a/source/de/anomic/tools/CryptoLib.java b/source/de/anomic/tools/CryptoLib.javaindex 7979ab954..17547ba40 100644--- a/source/de/anomic/tools/CryptoLib.java+++ b/source/de/anomic/tools/CryptoLib.java@@ -4,9 +4,9 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2008-03-14 01:16:04 +0100 (Fr, 14 Mrz 2008) $-// $LastChangedRevision: 4558 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//diff --git a/source/de/anomic/tools/ListDirs.java b/source/de/anomic/tools/ListDirs.javaindex 5db3cad4f..7de33e17a 100644--- a/source/de/anomic/tools/ListDirs.java+++ b/source/de/anomic/tools/ListDirs.java@@ -4,9 +4,9 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: $-// $LastChangedRevision: $-// $LastChangedBy: $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//diff --git a/source/de/anomic/tools/PKCS12Tool.java b/source/de/anomic/tools/PKCS12Tool.javaindex 18536b25d..793ef5510 100644--- a/source/de/anomic/tools/PKCS12Tool.java+++ b/source/de/anomic/tools/PKCS12Tool.java@@ -7,8 +7,9 @@////This file ist contributed by Martin Thelian//-//last change: $LastChangedDate: 2006-05-12 16:35:56 +0200 (Fr, 12 Mai 2006) $ by $LastChangedBy: theli $-//Revision: $LastChangedRevision: 2086 $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$////This program is free software; you can redistribute it and/or modify//it under the terms of the GNU General Public License as published bydiff --git a/source/de/anomic/tools/SignatureOutputStream.java b/source/de/anomic/tools/SignatureOutputStream.javaindex 8a1b161db..315369bce 100644--- a/source/de/anomic/tools/SignatureOutputStream.java+++ b/source/de/anomic/tools/SignatureOutputStream.java@@ -5,9 +5,9 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2009-03-30 17:31:25 +0200 (Mo, 30. March 2009) $-// $LastChangedRevision: 5756 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//@@ -69,6 +69,7 @@ public class SignatureOutputStream extends FilterOutputStream {* write byte* @see FilterOutputStream.write(int b)*/+ @Overridepublic void write(int b) throws IOException {try {signature.update((byte)b);@@ -78,6 +79,7 @@ public class SignatureOutputStream extends FilterOutputStream {out.write(b);}+ @Overridepublic void write(byte[] b, int off, int len) throws IOException {try {signature.update(b, off, len);diff --git a/source/de/anomic/tools/bitfield.java b/source/de/anomic/tools/bitfield.javaindex 625c14c34..55e78b704 100644--- a/source/de/anomic/tools/bitfield.java+++ b/source/de/anomic/tools/bitfield.java@@ -3,7 +3,10 @@// (C) by Michael Peter Christen; [email protected]// first published on http://www.anomic.de// Frankfurt, Germany, 2004-// last major change: 11.08.2004+//+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// This program is free software; you can redistribute it and/or modify// it under the terms of the GNU General Public License as published by@@ -76,6 +79,7 @@ public class bitfield {return bb;}+ @Overridepublic String toString() {throw new UnsupportedOperationException("testing");/*diff --git a/source/de/anomic/tools/cryptbig.java b/source/de/anomic/tools/cryptbig.javaindex 74bf87bd1..6a7010d81 100644--- a/source/de/anomic/tools/cryptbig.java+++ b/source/de/anomic/tools/cryptbig.java@@ -1,9 +1,12 @@-// crypt.java+// cryptbig.java// -------------------------------------// (C) by Michael Peter Christen; [email protected]// first published on http://www.anomic.de// Frankfurt, Germany, 2004-// last major change: 13.05.2004+//+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// This program is free software; you can redistribute it and/or modify// it under the terms of the GNU General Public License as published bydiff --git a/source/de/anomic/tools/disorderHeap.java b/source/de/anomic/tools/disorderHeap.javaindex 7615426e2..b4d5662e4 100644--- a/source/de/anomic/tools/disorderHeap.java+++ b/source/de/anomic/tools/disorderHeap.java@@ -3,7 +3,10 @@// (C) by Michael Peter Christen; [email protected]// first published on http://www.anomic.de// Frankfurt, Germany, 2004-// last major change: 17.05.2004+//+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// This program is free software; you can redistribute it and/or modify// it under the terms of the GNU General Public License as published bydiff --git a/source/de/anomic/tools/disorderSet.java b/source/de/anomic/tools/disorderSet.javaindex b5e028d34..a83333f5c 100644--- a/source/de/anomic/tools/disorderSet.java+++ b/source/de/anomic/tools/disorderSet.java@@ -3,7 +3,10 @@// (C) by Michael Peter Christen; [email protected]// first published on http://www.anomic.de// Frankfurt, Germany, 2004-// last major change: 17.05.2004+//+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// This program is free software; you can redistribute it and/or modify// it under the terms of the GNU General Public License as published by@@ -21,6 +24,7 @@package de.anomic.tools;+import java.util.Arrays;import java.util.HashSet;import java.util.Iterator;import java.util.Set;@@ -53,7 +57,7 @@ public class disorderSet extends HashSet<String> implements Set<String> {public static void main(final String[] args) {final disorderSet ds = new disorderSet();- for (int i = 0; i < args.length; i++) ds.add(args[i]);+ ds.addAll(Arrays.asList(args));for (int i = 0; i < args.length * 3; i++) System.out.print(ds.any() + " ");System.out.println();}diff --git a/source/de/anomic/tools/enumerateFiles.java b/source/de/anomic/tools/enumerateFiles.javaindex 1c5f45c84..ad572ba2a 100644--- a/source/de/anomic/tools/enumerateFiles.java+++ b/source/de/anomic/tools/enumerateFiles.java@@ -3,7 +3,10 @@// (C) by Michael Peter Christen; [email protected]// first published on http://www.anomic.de// Frankfurt, Germany, 2004-// last major change: 26.12.2004+//+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// This program is free software; you can redistribute it and/or modify// it under the terms of the GNU General Public License as published by@@ -24,6 +27,7 @@ package de.anomic.tools;import java.io.File;import java.util.ArrayList;import java.util.Enumeration;+import java.util.List;import java.util.TreeSet;import net.yacy.kelondro.util.FileUtils;@@ -34,7 +38,7 @@ public class enumerateFiles implements Enumeration<File> {// implements iterative search through recursively defined subdirectories// and return all paths to the files- private final ArrayList<TreeSet<File>> hierarchy; // contains TreeSet elements, each TreeSet contains File Entries+ private final List<TreeSet<File>> hierarchy; // contains TreeSet elements, each TreeSet contains File Entriesprivate final boolean incOrder; // if true, the smallest value is returned firstprivate File buffer; // the prefetch-bufferprivate final boolean return_files;diff --git a/source/de/anomic/tools/gzip.java b/source/de/anomic/tools/gzip.javaindex 43971f679..d00a89b07 100644--- a/source/de/anomic/tools/gzip.java+++ b/source/de/anomic/tools/gzip.java@@ -3,7 +3,10 @@// (C) by Michael Peter Christen; [email protected]// first published on http://www.anomic.de// Frankfurt, Germany, 2004-// last major change: 13.05.2004+//+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// This program is free software; you can redistribute it and/or modify// it under the terms of the GNU General Public License as published by@@ -51,10 +54,8 @@ public class gzip {fin.close();fout.close();} catch (final FileNotFoundException e) {- //System.err.println("ERROR: file '" + inFile + "' not found");logger.logWarning("ERROR: file '" + inFile + "' not found", e);} catch (final IOException e) {- //System.err.println("ERROR: IO trouble ");logger.logWarning("ERROR: IO trouble ",e);}}@@ -75,10 +76,8 @@ public class gzip {fin.close();fout.close();} catch (final FileNotFoundException e) {- //System.err.println("ERROR: file '" + inFile + "' not found");logger.logWarning("ERROR: file '" + inFile + "' not found", e);} catch (final IOException e) {- //System.err.println("ERROR: IO trouble ");logger.logWarning("ERROR: IO trouble ",e);}}@@ -93,7 +92,6 @@ public class gzip {fout.close();return baos.toByteArray();} catch (final IOException e) {- //System.err.println("ERROR: IO trouble ");logger.logWarning("ERROR: IO trouble ",e);return null;}diff --git a/source/de/anomic/tools/loaderCore.java b/source/de/anomic/tools/loaderCore.javaindex f86e93bfd..2df785aa2 100644--- a/source/de/anomic/tools/loaderCore.java+++ b/source/de/anomic/tools/loaderCore.java@@ -3,7 +3,10 @@// (C) by Michael Peter Christen; [email protected]// first published on http://www.anomic.de// Frankfurt, Germany, 2004-// last major change: 29.09.2004+//+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// This program is free software; you can redistribute it and/or modify// it under the terms of the GNU General Public License as published bydiff --git a/source/de/anomic/tools/loaderThreads.java b/source/de/anomic/tools/loaderThreads.javaindex b816ac4ac..7c7b21ebe 100644--- a/source/de/anomic/tools/loaderThreads.java+++ b/source/de/anomic/tools/loaderThreads.java@@ -3,7 +3,10 @@// (C) by Michael Peter Christen; [email protected]// first published on http://www.anomic.de// Frankfurt, Germany, 2004-// last major change: 28.09.2004+//+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// This program is free software; you can redistribute it and/or modify// it under the terms of the GNU General Public License as published bydiff --git a/source/de/anomic/tools/tarTools.java b/source/de/anomic/tools/tarTools.javaindex dc41c63a6..cd9d82d48 100644--- a/source/de/anomic/tools/tarTools.java+++ b/source/de/anomic/tools/tarTools.java@@ -4,9 +4,9 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: $-// $LastChangedRevision: $-// $LastChangedBy: $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//diff --git a/source/de/anomic/yacy/Tray.java b/source/de/anomic/yacy/Tray.javaindex 78d5bad0e..e32c27717 100644--- a/source/de/anomic/yacy/Tray.java+++ b/source/de/anomic/yacy/Tray.java@@ -5,9 +5,9 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: $-// $LastChangedRevision: $-// $LastChangedBy: $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//diff --git a/source/de/anomic/yacy/dht/Dispatcher.java b/source/de/anomic/yacy/dht/Dispatcher.javaindex ea453bdfe..bbce42d4d 100755--- a/source/de/anomic/yacy/dht/Dispatcher.java+++ b/source/de/anomic/yacy/dht/Dispatcher.java@@ -5,9 +5,9 @@// first published on http://yacy.net// Frankfurt, Germany, 28.01.2009//-// $LastChangedDate: 2009-01-23 16:32:27 +0100 (Fr, 23 Jan 2009) $-// $LastChangedRevision: 5514 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// This program is free software; you can redistribute it and/or modify// it under the terms of the GNU General Public License as published bydiff --git a/source/de/anomic/yacy/dht/FlatWordPartitionScheme.java b/source/de/anomic/yacy/dht/FlatWordPartitionScheme.javaindex 6a650ca8e..dfbdc30c1 100755--- a/source/de/anomic/yacy/dht/FlatWordPartitionScheme.java+++ b/source/de/anomic/yacy/dht/FlatWordPartitionScheme.java@@ -5,9 +5,9 @@// first published on http://yacy.net// Frankfurt, Germany, 28.01.2009//-// $LastChangedDate: 2009-01-23 16:32:27 +0100 (Fr, 23 Jan 2009) $-// $LastChangedRevision: 5514 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// This program is free software; you can redistribute it and/or modify// it under the terms of the GNU General Public License as published bydiff --git a/source/de/anomic/yacy/dht/PartitionScheme.java b/source/de/anomic/yacy/dht/PartitionScheme.javaindex de35fb832..187237aee 100755--- a/source/de/anomic/yacy/dht/PartitionScheme.java+++ b/source/de/anomic/yacy/dht/PartitionScheme.java@@ -5,9 +5,9 @@// first published on http://yacy.net// Frankfurt, Germany, 28.01.2009//-// $LastChangedDate: 2009-01-23 16:32:27 +0100 (Fr, 23 Jan 2009) $-// $LastChangedRevision: 5514 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// This program is free software; you can redistribute it and/or modify// it under the terms of the GNU General Public License as published bydiff --git a/source/de/anomic/yacy/dht/PeerSelection.java b/source/de/anomic/yacy/dht/PeerSelection.javaindex 419203b80..68cf45951 100755--- a/source/de/anomic/yacy/dht/PeerSelection.java+++ b/source/de/anomic/yacy/dht/PeerSelection.java@@ -4,9 +4,9 @@// first published 05.11.2008 on http://yacy.net// Frankfurt, Germany, 2008//-// $LastChangedDate: 2008-09-03 02:30:21 +0200 (Mi, 03 Sep 2008) $-// $LastChangedRevision: 5102 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// This program is free software; you can redistribute it and/or modify// it under the terms of the GNU General Public License as published bydiff --git a/source/de/anomic/yacy/dht/Transmission.java b/source/de/anomic/yacy/dht/Transmission.javaindex eb04613e6..c77bf2c2d 100644--- a/source/de/anomic/yacy/dht/Transmission.java+++ b/source/de/anomic/yacy/dht/Transmission.java@@ -2,9 +2,9 @@// (C) 2009 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany// first published 09.02.2009 on http://yacy.net//-// $LastChangedDate: 2006-04-02 22:40:07 +0200 (So, 02 Apr 2006) $-// $LastChangedRevision: 1986 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//diff --git a/source/de/anomic/yacy/dht/VerticalWordPartitionScheme.java b/source/de/anomic/yacy/dht/VerticalWordPartitionScheme.javaindex 1a6c9aa22..389afd325 100755--- a/source/de/anomic/yacy/dht/VerticalWordPartitionScheme.java+++ b/source/de/anomic/yacy/dht/VerticalWordPartitionScheme.java@@ -5,9 +5,9 @@// first published on http://yacy.net// Frankfurt, Germany, 28.01.2009//-// $LastChangedDate: 2009-01-23 16:32:27 +0100 (Fr, 23 Jan 2009) $-// $LastChangedRevision: 5514 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// This program is free software; you can redistribute it and/or modify// it under the terms of the GNU General Public License as published by@@ -110,7 +110,7 @@ public class VerticalWordPartitionScheme implements PartitionScheme {return dhtDistance(word, urlHash, peer.hash.getBytes());}- private final long dhtDistance(final byte[] from, final String urlHash, final byte[] to) {+ private long dhtDistance(final byte[] from, final String urlHash, final byte[] to) {// the dht distance is a positive value between 0 and 1// if the distance is small, the word more probably belongs to the peerassert to != null;diff --git a/source/de/anomic/yacy/graphics/OSMTile.java b/source/de/anomic/yacy/graphics/OSMTile.javaindex 8d3c0e78b..5568736da 100644--- a/source/de/anomic/yacy/graphics/OSMTile.java+++ b/source/de/anomic/yacy/graphics/OSMTile.java@@ -3,9 +3,9 @@* Copyright 2008 by Michael Peter Christen* First released 12.02.2008 at http://yacy.net*- * $LastChangedDate: 2006-04-02 22:40:07 +0200 (So, 02 Apr 2006) $- * $LastChangedRevision: 1986 $- * $LastChangedBy: orbiter $+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Publicdiff --git a/source/de/anomic/yacy/graphics/ProfilingGraph.java b/source/de/anomic/yacy/graphics/ProfilingGraph.javaindex 80b8e80cc..061d67fce 100644--- a/source/de/anomic/yacy/graphics/ProfilingGraph.java+++ b/source/de/anomic/yacy/graphics/ProfilingGraph.java@@ -4,9 +4,9 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2006-04-02 22:40:07 +0200 (So, 02 Apr 2006) $-// $LastChangedRevision: 1986 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//diff --git a/source/de/anomic/yacy/graphics/WebStructureGraph.java b/source/de/anomic/yacy/graphics/WebStructureGraph.javaindex e20ef4e05..7a7d91d85 100644--- a/source/de/anomic/yacy/graphics/WebStructureGraph.java+++ b/source/de/anomic/yacy/graphics/WebStructureGraph.java@@ -5,9 +5,9 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2006-04-02 22:40:07 +0200 (So, 02 Apr 2006) $-// $LastChangedRevision: 1986 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//@@ -56,9 +56,9 @@ public class WebStructureGraph {public static int maxhosts = 20000; // maximum number of hosts in web structure mapprivate final Log log;- private final File structureFile;- TreeMap<String, String> structure_old; // <b64hash(6)>','<host> to <date-yyyymmdd(8)>{<target-b64hash(6)><target-count-hex(4)>}*- TreeMap<String, String> structure_new;+ private final File structureFile;+ private final TreeMap<String, String> structure_old; // <b64hash(6)>','<host> to <date-yyyymmdd(8)>{<target-b64hash(6)><target-count-hex(4)>}*+ private final TreeMap<String, String> structure_new;public WebStructureGraph(final Log log, final File structureFile) {this.log = log;@@ -352,7 +352,7 @@ public class WebStructureGraph {}}- private static final void joinStructure(final TreeMap<String, String> into, final TreeMap<String, String> from) {+ private static void joinStructure(final TreeMap<String, String> into, final TreeMap<String, String> from) {for (final Map.Entry<String, String> e: from.entrySet()) {if (into.containsKey(e.getKey())) {final Map<String, Integer> s0 = refstr2map(into.get(e.getKey()));diff --git a/source/de/anomic/yacy/yacyChannel.java b/source/de/anomic/yacy/yacyChannel.javaindex 0ac0c2994..636ba1b5f 100644--- a/source/de/anomic/yacy/yacyChannel.java+++ b/source/de/anomic/yacy/yacyChannel.java@@ -3,6 +3,10 @@* Copyright 2010 by Michael Peter Christen* First released 29.6.2010 at http://yacy.net*+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$+ ** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; eitherdiff --git a/source/de/anomic/yacy/yacyNetwork.java b/source/de/anomic/yacy/yacyNetwork.javaindex 234c12dc6..063f0ad4f 100644--- a/source/de/anomic/yacy/yacyNetwork.java+++ b/source/de/anomic/yacy/yacyNetwork.java@@ -5,9 +5,9 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2007-07-03 22:55:47 +0000 (Di, 03 Jul 2007) $-// $LastChangedRevision: 3950 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//diff --git a/source/de/anomic/yacy/yacyUpdateLocation.java b/source/de/anomic/yacy/yacyUpdateLocation.javaindex 8f38adc66..861f7669e 100644--- a/source/de/anomic/yacy/yacyUpdateLocation.java+++ b/source/de/anomic/yacy/yacyUpdateLocation.java@@ -5,9 +5,9 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2009-02-19 17:24:46 +0100 (Do, 19. Feb 2009) $-// $LastChangedRevision: 5621 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//diff --git a/source/net/yacy/YaCySearchClient.java b/source/net/yacy/YaCySearchClient.javaindex b3512d08c..55e642cd1 100644--- a/source/net/yacy/YaCySearchClient.java+++ b/source/net/yacy/YaCySearchClient.java@@ -4,6 +4,10 @@* Copyright 2010 by Michael Peter Christen, [email protected], Frankfurt a. M., Germany* First released 20.09.2010 at http://yacy.net*+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$+ ** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; either@@ -49,8 +53,11 @@ public class YaCySearchClient {private String host, query;private int port, offset;- public YaCySearchClient(String host, int port, String query) {- this.host = host; this.port = port; this.offset = -10; this.query = query;+ public YaCySearchClient(final String host, final int port, final String query) {+ this.host = host;+ this.port = port;+ this.offset = -10;+ this.query = query;}public SearchResult next() throws IOException {@@ -63,18 +70,24 @@ public class YaCySearchClient {public SearchResult() throws IOException {URL url;Document doc;- String u =- "http://" + host + ":" + port + "/yacysearch.rss?verify=false" +- "&startRecord=" + offset + "&maximumRecords=10&resource=local" +- "&query=" + query.replaceAll(" ", "+");+ String u = new StringBuilder().append("http://")+ .append(host)+ .append(":")+ .append(port)+ .append("/yacysearch.rss?verify=false&startRecord=")+ .append(offset)+ .append("&maximumRecords=10&resource=local&query=")+ .append(query.replaceAll(" ", "+")).toString();try { url = new URL(u); } catch (MalformedURLException e) { throw new IOException (e); }try { doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(url.openStream()); }catch (ParserConfigurationException e) { throw new IOException (e); }catch (SAXException e) { throw new IOException (e); }- NodeList nodes = doc.getElementsByTagName("item");+ final NodeList nodes = doc.getElementsByTagName("item");for (int i = 0; i < nodes.getLength(); i++)this.add(new RSSEntry((Element) nodes.item(i)));}++ @Overridepublic String toString() {StringBuilder sb = new StringBuilder();for (RSSEntry entry: this) sb.append(entry.toString());@@ -95,8 +108,16 @@ public class YaCySearchClient {return (child instanceof CharacterData) ?((CharacterData) child).getData() : dflt;}++ @Overridepublic String toString() {- return "Title : " + title + "\nLink : " + link + "\nDescription: " + snippet + "\n";+ return new StringBuilder().append("Title : ")+ .append(title)+ .append("\nLink : ")+ .append(link)+ .append("\nDescription: ")+ .append(snippet)+ .append("\n").toString();}}diff --git a/source/net/yacy/ai/example/ConnectFour.java b/source/net/yacy/ai/example/ConnectFour.javaindex f56a9b7c5..0da5e8137 100755--- a/source/net/yacy/ai/example/ConnectFour.java+++ b/source/net/yacy/ai/example/ConnectFour.java@@ -3,6 +3,10 @@* Copyright 2009 by Michael Peter Christen, Frankfurt a. M., Germany* First published 03.12.2009 at http://yacy.net*+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$+ ** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; either@@ -47,6 +51,7 @@ public class ConnectFour {public Coin nextRole() {return (this == red) ? blue : red;}+ @Overridepublic String toString() {return this.c;}public final static Coin[] allCoins = {red, blue};}@@ -74,6 +79,7 @@ public class ConnectFour {public int hashCode() {return this.column;}+ @Overridepublic String toString() {return super.getRole().toString() + ":" + Integer.toString(this.column);}@@ -134,6 +140,7 @@ public class ConnectFour {}public boolean equals(Object o) {+ if (!(o instanceof Board)) return false;Board om = (Board) o;Coin c0, c1;for (int i = 0; i < b.length; i++) {@@ -237,8 +244,9 @@ public class ConnectFour {return moves;}+ @Overridepublic String toString() {- StringBuffer s = new StringBuffer((width + 1) * height);+ StringBuilder s = new StringBuilder((width + 1) * height);Coin coin;for (int row = height - 1; row >= 0; row--) {s.append('\"');diff --git a/source/net/yacy/ai/example/Hanoi.java b/source/net/yacy/ai/example/Hanoi.javaindex a2f62e780..7ca41348e 100644--- a/source/net/yacy/ai/example/Hanoi.java+++ b/source/net/yacy/ai/example/Hanoi.java@@ -3,6 +3,10 @@* Copyright 2009 by Michael Peter Christen, Frankfurt a. M., Germany* First published 03.12.2009 at http://yacy.net*+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$+ ** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; either@@ -45,7 +49,7 @@ public class Hanoi {@Overridepublic boolean equals(Object other) {- return this.size == ((Coin) other).size;+ return (other != null && other instanceof Coin && this.size == ((Coin) other).size);}@Override@@ -53,6 +57,7 @@ public class Hanoi {return this.size;}+ @Overridepublic String toString() {return Integer.toString(size);}@@ -79,7 +84,10 @@ public class Hanoi {@Overridepublic boolean equals(Object other) {- return this.from == ((Move) other).from && this.to == ((Move) other).to;+ return (other != null+ && other instanceof Move+ && this.from == ((Move) other).from+ && this.to == ((Move) other).to);}@Override@@ -87,6 +95,7 @@ public class Hanoi {return 3 * this.from + 7 * this.to;}+ @Overridepublic String toString() {return from + " -> " + to;}@@ -106,6 +115,7 @@ public class Hanoi {this.moves = 0;}+ @Overridepublic String toString() {StringBuilder s = new StringBuilder();s.append(stacks[0].toString());@@ -128,6 +138,7 @@ public class Hanoi {@Overridepublic boolean equals(Object other) {+ if (other == null || !(other instanceof Board)) return false;Board b = (Board) other;for (int i = 0; i < 3; i++) {if (this.stacks[i].size() != b.stacks[i].size()) return false;@@ -164,7 +175,7 @@ public class Hanoi {}public List<Move> explore() {- ArrayList<Move> moves = new ArrayList<Move>();+ final List<Move> moves = new ArrayList<Move>();for (int from = 0; from < 3; from++) {toloop: for (int to = 0; to < 3; to++) {if (from == to) continue toloop;@@ -185,11 +196,11 @@ public class Hanoi {}public boolean isTermination(Unirole role) {- return stacks[0].size() == 0 && stacks[2].size() == 0;+ return stacks[0].isEmpty() && stacks[2].isEmpty();}public Unirole isTermination() {- return (stacks[0].size() == 0 && stacks[2].size() == 0) ? Unirole.unirole : null;+ return (stacks[0].isEmpty() && stacks[2].isEmpty()) ? Unirole.unirole : null;}}diff --git a/source/net/yacy/ai/example/SchwarzerPeter.java b/source/net/yacy/ai/example/SchwarzerPeter.javaindex 6c41f7a40..4b5e6b356 100644--- a/source/net/yacy/ai/example/SchwarzerPeter.java+++ b/source/net/yacy/ai/example/SchwarzerPeter.java@@ -26,9 +26,14 @@ public class SchwarzerPeter {public Karte(Kartentyp kartentyp, Kartenzaehler kartenzaehler) {this.kartentyp = kartentyp; this.kartenzaehler = kartenzaehler;}+ @Overridepublic boolean equals(Object obj) {- return this.kartentyp == ((Karte) obj).kartentyp && this.kartenzaehler == ((Karte) obj).kartenzaehler;+ return obj != null+ && obj instanceof Karte+ && this.kartentyp == ((Karte) obj).kartentyp+ && this.kartenzaehler == ((Karte) obj).kartenzaehler;}+ @Overridepublic int hashCode() {return this.kartentyp.hashCode() + 16 + this.kartenzaehler.hashCode();}@@ -77,10 +82,14 @@ public class SchwarzerPeter {return new Spieler(n, this.spieleranzahl);}+ @Overridepublic boolean equals(Object obj) {- return this.spielernummer == ((Spieler) obj).spielernummer;+ return obj != null+ && obj instanceof Spieler+ && this.spielernummer == ((Spieler) obj).spielernummer;}+ @Overridepublic int hashCode() {return this.spielernummer;}diff --git a/source/net/yacy/ai/example/testorder.java b/source/net/yacy/ai/example/testorder.javaindex a8ba2a417..e719d6aa3 100755--- a/source/net/yacy/ai/example/testorder.java+++ b/source/net/yacy/ai/example/testorder.java@@ -3,6 +3,10 @@* Copyright 2009 by Michael Peter Christen, Frankfurt a. M., Germany* First published 03.12.2009 at http://yacy.net*+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$+ ** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; either@@ -29,6 +33,7 @@ public class testorder implements Comparable<testorder> {public testorder(int x) {this.x = x;}+ @Overridepublic String toString() {return Integer.toString(this.x);}diff --git a/source/net/yacy/ai/greedy/AbstractFinding.java b/source/net/yacy/ai/greedy/AbstractFinding.javaindex f9d74481f..ac8cd06ea 100755--- a/source/net/yacy/ai/greedy/AbstractFinding.java+++ b/source/net/yacy/ai/greedy/AbstractFinding.java@@ -3,6 +3,10 @@* Copyright 2009 by Michael Peter Christen, Frankfurt a. M., Germany* First published 03.12.2009 at http://yacy.net*+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$+ ** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; either@@ -48,6 +52,7 @@ public abstract class AbstractFinding<SpecificRole extends Role> implements Findthis.priority = 0;}+ @Overridepublic abstract Object clone();/**@@ -86,6 +91,8 @@ public abstract class AbstractFinding<SpecificRole extends Role> implements Findreturn compare(this, o);}+ @Overridepublic abstract boolean equals(Object other);+ @Overridepublic abstract int hashCode();}diff --git a/source/net/yacy/ai/greedy/AbstractModel.java b/source/net/yacy/ai/greedy/AbstractModel.javaindex 6158aa852..4532c71bb 100755--- a/source/net/yacy/ai/greedy/AbstractModel.java+++ b/source/net/yacy/ai/greedy/AbstractModel.java@@ -3,6 +3,10 @@* Copyright 2009 by Michael Peter Christen, Frankfurt a. M., Germany* First published 03.12.2009 at http://yacy.net*+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$+ ** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; either@@ -29,6 +33,7 @@ public abstract class AbstractModel<SpecificRole extends Role, SpecificFinding ethis.currentRole = currentRole;}+ @Overridepublic abstract Object clone();/**@@ -48,6 +53,8 @@ public abstract class AbstractModel<SpecificRole extends Role, SpecificFinding ethis.currentRole = (SpecificRole) this.currentRole.nextRole();}+ @Overridepublic abstract boolean equals(Object other);+ @Overridepublic abstract int hashCode();}diff --git a/source/net/yacy/ai/greedy/Agent.java b/source/net/yacy/ai/greedy/Agent.javaindex ab15104c6..d640aa900 100755--- a/source/net/yacy/ai/greedy/Agent.java+++ b/source/net/yacy/ai/greedy/Agent.java@@ -3,6 +3,10 @@* Copyright 2009 by Michael Peter Christen, Frankfurt a. M., Germany* First published 03.12.2009 at http://yacy.net*+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$+ ** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; either@@ -197,11 +201,13 @@ public class Agent<return list;}+ @Overridepublic int hashCode() {return this.model.hashCode();}@SuppressWarnings("unchecked")+ @Overridepublic boolean equals(Object om) {if (!(om instanceof Agent)) return false;Agent<SpecificRole, SpecificFinding, SpecificModel> a = (Agent<SpecificRole, SpecificFinding, SpecificModel>) om;diff --git a/source/net/yacy/ai/greedy/Asset.java b/source/net/yacy/ai/greedy/Asset.javaindex 555307fa0..c0a498021 100755--- a/source/net/yacy/ai/greedy/Asset.java+++ b/source/net/yacy/ai/greedy/Asset.java@@ -3,6 +3,10 @@* Copyright 2009 by Michael Peter Christen, Frankfurt a. M., Germany* First published 03.12.2009 at http://yacy.net*+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$+ ** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; either@@ -42,11 +46,13 @@ public class Asset<return this.finding;}+ @Overridepublic int hashCode() {return (this.finding == null) ? this.model.hashCode() : this.model.hashCode() + this.finding.hashCode();}@SuppressWarnings("unchecked")+ @Overridepublic boolean equals(Object other) {if (!(other instanceof Asset)) return false;Asset<SpecificRole, SpecificFinding, SpecificModel> a = (Asset<SpecificRole, SpecificFinding, SpecificModel>) other;diff --git a/source/net/yacy/ai/greedy/Attempts.java b/source/net/yacy/ai/greedy/Attempts.javaindex 9551f38d0..f3f7f890c 100755--- a/source/net/yacy/ai/greedy/Attempts.java+++ b/source/net/yacy/ai/greedy/Attempts.java@@ -3,6 +3,10 @@* Copyright 2009 by Michael Peter Christen, Frankfurt a. M., Germany* First published 03.12.2009 at http://yacy.net*+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$+ ** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; either@@ -20,6 +24,7 @@package net.yacy.ai.greedy;+import java.util.Map;import java.util.TreeMap;import java.util.concurrent.BlockingQueue;@@ -30,7 +35,7 @@ import java.util.concurrent.BlockingQueue;*/public class Attempts<SpecificRole extends Role> {- TreeMap<Long, BlockingQueue<Finding<SpecificRole>>> stack;+ Map<Long, BlockingQueue<Finding<SpecificRole>>> stack;public Attempts() {this.stack = new TreeMap<Long, BlockingQueue<Finding<SpecificRole>>>();diff --git a/source/net/yacy/ai/greedy/Battle.java b/source/net/yacy/ai/greedy/Battle.javaindex c6824b39f..69d37ac93 100755--- a/source/net/yacy/ai/greedy/Battle.java+++ b/source/net/yacy/ai/greedy/Battle.java@@ -3,6 +3,10 @@* Copyright 2009 by Michael Peter Christen, Frankfurt a. M., Germany* First published 03.12.2009 at http://yacy.net*+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$+ ** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; eitherdiff --git a/source/net/yacy/ai/greedy/Challenge.java b/source/net/yacy/ai/greedy/Challenge.javaindex 963f08b26..9504a0be2 100755--- a/source/net/yacy/ai/greedy/Challenge.java+++ b/source/net/yacy/ai/greedy/Challenge.java@@ -3,6 +3,10 @@* Copyright 2009 by Michael Peter Christen, Frankfurt a. M., Germany* First published 03.12.2009 at http://yacy.net*+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$+ ** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; either@@ -53,11 +57,13 @@ public class Challenge<return this.finding;}+ @Overridepublic int hashCode() {return this.agent.hashCode() + this.finding.hashCode();}@SuppressWarnings("unchecked")+ @Overridepublic boolean equals(Object other) {if (!(other instanceof Challenge)) return false;Challenge<SpecificRole, SpecificFinding, SpecificModel> c = (Challenge<SpecificRole, SpecificFinding, SpecificModel>) other;diff --git a/source/net/yacy/ai/greedy/Context.java b/source/net/yacy/ai/greedy/Context.javaindex 01c9102d0..682677edd 100755--- a/source/net/yacy/ai/greedy/Context.java+++ b/source/net/yacy/ai/greedy/Context.java@@ -3,6 +3,10 @@* Copyright 2009 by Michael Peter Christen, Frankfurt a. M., Germany* First published 03.12.2009 at http://yacy.net*+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$+ ** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; eitherdiff --git a/source/net/yacy/ai/greedy/ContextFactory.java b/source/net/yacy/ai/greedy/ContextFactory.javaindex 86f12e0c1..2ebf928d5 100644--- a/source/net/yacy/ai/greedy/ContextFactory.java+++ b/source/net/yacy/ai/greedy/ContextFactory.java@@ -3,6 +3,10 @@* Copyright 2009 by Michael Peter Christen, Frankfurt a. M., Germany* First published 03.12.2009 at http://yacy.net*+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$+ ** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; eitherdiff --git a/source/net/yacy/ai/greedy/Engine.java b/source/net/yacy/ai/greedy/Engine.javaindex 8544b76e9..369940455 100755--- a/source/net/yacy/ai/greedy/Engine.java+++ b/source/net/yacy/ai/greedy/Engine.java@@ -3,6 +3,10 @@* Copyright 2009 by Michael Peter Christen, Frankfurt a. M., Germany* First published 03.12.2009 at http://yacy.net*+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$+ ** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; either@@ -73,6 +77,7 @@ public class Engine<public class SettingRunner extends Thread {+ @Overridepublic void run() {Agent<SpecificRole, SpecificFinding, SpecificModel> agent;Challenge<SpecificRole, SpecificFinding, SpecificModel> challenge;@@ -115,6 +120,7 @@ public class Engine<public class AssetRunner extends Thread {@SuppressWarnings("unchecked")+ @Overridepublic void run() {Challenge<SpecificRole, SpecificFinding, SpecificModel> challenge;Agent<SpecificRole, SpecificFinding, SpecificModel> agent, nextAgent;diff --git a/source/net/yacy/ai/greedy/Finding.java b/source/net/yacy/ai/greedy/Finding.javaindex bf5644278..7d3b39f0d 100755--- a/source/net/yacy/ai/greedy/Finding.java+++ b/source/net/yacy/ai/greedy/Finding.java@@ -3,6 +3,10 @@* Copyright 2009 by Michael Peter Christen, Frankfurt a. M., Germany* First published 03.12.2009 at http://yacy.net*+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$+ ** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; either@@ -65,12 +69,14 @@ public interface Finding<SpecificRole extends Role> extends Comparator<Finding<S* @param other* @return true if this finding is equal to the other finding*/+ @Overridepublic boolean equals(Object other);/*** the hash code computation, necessary to place findings into hashtables* @return a hash code for this object*/+ @Overridepublic int hashCode();}diff --git a/source/net/yacy/ai/greedy/Goal.java b/source/net/yacy/ai/greedy/Goal.javaindex 0d6175bf5..f13882fc3 100755--- a/source/net/yacy/ai/greedy/Goal.java+++ b/source/net/yacy/ai/greedy/Goal.java@@ -3,6 +3,10 @@* Copyright 2009 by Michael Peter Christen, Frankfurt a. M., Germany* First published 03.12.2009 at http://yacy.net*+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$+ ** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; eitherdiff --git a/source/net/yacy/ai/greedy/Model.java b/source/net/yacy/ai/greedy/Model.javaindex 0f5ce4e3d..873711121 100755--- a/source/net/yacy/ai/greedy/Model.java+++ b/source/net/yacy/ai/greedy/Model.java@@ -3,6 +3,10 @@* Copyright 2009 by Michael Peter Christen, Frankfurt a. M., Germany* First published 03.12.2009 at http://yacy.net*+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$+ ** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; either@@ -77,6 +81,7 @@ public interface Model<SpecificRole extends Role, SpecificFinding extends Findin* do not include a computation based on latest actions* @return a hash code*/+ @Overridepublic int hashCode();/**@@ -84,6 +89,7 @@ public interface Model<SpecificRole extends Role, SpecificFinding extends Findin* @param om* @return true if other model is equal to the current model.*/+ @Overridepublic boolean equals(Object om);/**diff --git a/source/net/yacy/ai/greedy/Role.java b/source/net/yacy/ai/greedy/Role.javaindex b9beafa4d..7d8f68705 100755--- a/source/net/yacy/ai/greedy/Role.java+++ b/source/net/yacy/ai/greedy/Role.java@@ -3,6 +3,10 @@* Copyright 2009 by Michael Peter Christen, Frankfurt a. M., Germany* First published 03.12.2009 at http://yacy.net*+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$+ ** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; either@@ -41,12 +45,14 @@ public interface Role {* @param obj* @return true if the current role and the given role are equal*/+ @Overridepublic boolean equals(Object obj);/*** necessary hashCode method for usage of Role in hash tables* @return a hash code of the role*/+ @Overridepublic int hashCode();}diff --git a/source/net/yacy/ai/greedy/Unirole.java b/source/net/yacy/ai/greedy/Unirole.javaindex 0f9563eb3..fe9c417db 100644--- a/source/net/yacy/ai/greedy/Unirole.java+++ b/source/net/yacy/ai/greedy/Unirole.java@@ -3,6 +3,10 @@* Copyright 2010 by Michael Peter Christen, Frankfurt a. M., Germany* First published 06.01.2010 at http://yacy.net*+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$+ ** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; eitherdiff --git a/source/net/yacy/cora/date/AbstractFormatter.java b/source/net/yacy/cora/date/AbstractFormatter.javaindex f76ad7aef..a514e8ed9 100644--- a/source/net/yacy/cora/date/AbstractFormatter.java+++ b/source/net/yacy/cora/date/AbstractFormatter.java@@ -3,6 +3,10 @@* Copyright 2011 by Michael Peter Christen* First released 2.1.2011 at http://yacy.net*+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$+ ** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; eitherdiff --git a/source/net/yacy/cora/date/DateFormatter.java b/source/net/yacy/cora/date/DateFormatter.javaindex bac53dbbb..0e1e2e787 100644--- a/source/net/yacy/cora/date/DateFormatter.java+++ b/source/net/yacy/cora/date/DateFormatter.java@@ -3,6 +3,10 @@* Copyright 2011 by Michael Peter Christen* First released 2.1.2011 at http://yacy.net*+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$+ ** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; eitherdiff --git a/source/net/yacy/cora/date/GenericFormatter.java b/source/net/yacy/cora/date/GenericFormatter.javaindex 8c92d9df1..54b9f58ae 100644--- a/source/net/yacy/cora/date/GenericFormatter.java+++ b/source/net/yacy/cora/date/GenericFormatter.java@@ -3,6 +3,10 @@* Copyright 2011 by Michael Peter Christen* First released 2.1.2011 at http://yacy.net*+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$+ ** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; eitherdiff --git a/source/net/yacy/cora/date/ISO8601Formatter.java b/source/net/yacy/cora/date/ISO8601Formatter.javaindex 50e2b9eed..1bdb44b2c 100644--- a/source/net/yacy/cora/date/ISO8601Formatter.java+++ b/source/net/yacy/cora/date/ISO8601Formatter.java@@ -3,6 +3,10 @@* Copyright 2011 by Michael Peter Christen* First released 2.1.2011 at http://yacy.net*+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$+ ** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; eitherdiff --git a/source/net/yacy/cora/document/ASCIIComparator.java b/source/net/yacy/cora/document/ASCIIComparator.javaindex cc3a9e466..1eded6b8c 100644--- a/source/net/yacy/cora/document/ASCIIComparator.java+++ b/source/net/yacy/cora/document/ASCIIComparator.java@@ -2,7 +2,11 @@* ASCIIComparator* Copyright 2010 by Michael Peter Christen* First released 25.2.2011 at http://yacy.net- *+ *+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$+ ** This file is part of YaCy Content Integration** This library is free software; you can redistribute it and/or@@ -41,6 +45,7 @@ public class ASCIIComparator implements Comparator<String> {this.insensitive = insensitive;}+ @Overridepublic Object clone() {return this; // because we do not have any class variables that changes}@@ -67,10 +72,12 @@ public class ASCIIComparator implements Comparator<String> {return 0;}+ @Overridepublic boolean equals(Object obj) {return (obj == this);}+ @Overridepublic int hashCode() {return System.identityHashCode(this);}diff --git a/source/net/yacy/cora/document/Channel.java b/source/net/yacy/cora/document/Channel.javaindex 3f08bef8d..337284af6 100644--- a/source/net/yacy/cora/document/Channel.java+++ b/source/net/yacy/cora/document/Channel.java@@ -2,7 +2,11 @@* Channel* Copyright 2010 by Michael Peter Christen* First released 10.5.2010 at http://yacy.net- *+ *+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$+ ** This file is part of YaCy Content Integration** This library is free software; you can redistribute it and/ordiff --git a/source/net/yacy/cora/document/Channels.java b/source/net/yacy/cora/document/Channels.javaindex 06032ce4d..f2cb6f58f 100644--- a/source/net/yacy/cora/document/Channels.java+++ b/source/net/yacy/cora/document/Channels.java@@ -2,7 +2,11 @@* Channels* Copyright 2010 by Michael Peter Christen* First released 10.5.2010 at http://yacy.net- *+ *+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$+ ** This file is part of YaCy Content Integration** This library is free software; you can redistribute it and/ordiff --git a/source/net/yacy/cora/document/Hit.java b/source/net/yacy/cora/document/Hit.javaindex b93d97ece..2c7493a40 100644--- a/source/net/yacy/cora/document/Hit.java+++ b/source/net/yacy/cora/document/Hit.java@@ -2,7 +2,11 @@* Hit* Copyright 2010 by Michael Peter Christen* First released 10.5.2010 at http://yacy.net- *+ *+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$+ ** This file is part of YaCy Content Integration** This library is free software; you can redistribute it and/ordiff --git a/source/net/yacy/cora/document/JSONArray.java b/source/net/yacy/cora/document/JSONArray.javaindex af16e014d..badba4cd1 100644--- a/source/net/yacy/cora/document/JSONArray.java+++ b/source/net/yacy/cora/document/JSONArray.java@@ -284,7 +284,7 @@ public class JSONArray {*/private String join(String separator) throws JSONException {int len = length();- StringBuffer sb = new StringBuffer();+ StringBuilder sb = new StringBuilder();for (int i = 0; i < len; i += 1) {if (i > 0) {@@ -418,6 +418,7 @@ public class JSONArray {* @return a printable, displayable, transmittable* representation of the array.*/+ @Overridepublic String toString() {try {return '[' + join(",") + ']';@@ -442,7 +443,7 @@ public class JSONArray {return "[]";}int i;- StringBuffer sb = new StringBuffer("[");+ StringBuilder sb = new StringBuilder("[");if (len == 1) {sb.append(JSONObject.valueToString(this.myArrayList.get(0),indentFactor, indent));diff --git a/source/net/yacy/cora/document/JSONException.java b/source/net/yacy/cora/document/JSONException.javaindex c5a6fde44..0aed962da 100644--- a/source/net/yacy/cora/document/JSONException.java+++ b/source/net/yacy/cora/document/JSONException.java@@ -26,6 +26,7 @@ public class JSONException extends Exception {this.cause = t;}+ @Overridepublic Throwable getCause() {return this.cause;}diff --git a/source/net/yacy/cora/document/JSONObject.java b/source/net/yacy/cora/document/JSONObject.javaindex 0d6944cad..0d7e540fb 100644--- a/source/net/yacy/cora/document/JSONObject.java+++ b/source/net/yacy/cora/document/JSONObject.java@@ -99,6 +99,7 @@ public class JSONObject {* so the clone method returns itself.* @return NULL.*/+ @Overrideprotected final Object clone() {return this;}@@ -110,6 +111,7 @@ public class JSONObject {* @return true if the object parameter is the JSONObject.NULL object* or null.*/+ @Overridepublic boolean equals(Object object) {return object == null || object == this;}@@ -119,6 +121,7 @@ public class JSONObject {* Get the "null" string value.* @return The string "null".*/+ @Overridepublic String toString() {return "null";}@@ -1114,7 +1117,7 @@ public class JSONObject {char c = 0;int i;int len = string.length();- StringBuffer sb = new StringBuffer(len + 4);+ StringBuilder sb = new StringBuilder(len + 4);String t;sb.append('"');@@ -1152,7 +1155,7 @@ public class JSONObject {if (c < ' ' || (c >= '\u0080' && c < '\u00a0') ||(c >= '\u2000' && c < '\u2100')) {t = "000" + Integer.toHexString(c);- sb.append("\\u" + t.substring(t.length() - 4));+ sb.append("\\u").append(t.substring(t.length() - 4));} else {sb.append(c);}@@ -1292,10 +1295,11 @@ public class JSONObject {* with <code>{</code> <small>(left brace)</small> and ending* with <code>}</code> <small>(right brace)</small>.*/+ @Overridepublic String toString() {try {Iterator<?> keys = keys();- StringBuffer sb = new StringBuffer("{");+ StringBuilder sb = new StringBuilder("{");while (keys.hasNext()) {if (sb.length() > 1) {@@ -1351,7 +1355,7 @@ public class JSONObject {return "{}";}Iterator<String> keys = sortedKeys();- StringBuffer sb = new StringBuffer("{");+ StringBuilder sb = new StringBuilder("{");int newindent = indent + indentFactor;Object o;if (n == 1) {diff --git a/source/net/yacy/cora/document/JSONTokener.java b/source/net/yacy/cora/document/JSONTokener.javaindex c47905368..92d5df0f0 100644--- a/source/net/yacy/cora/document/JSONTokener.java+++ b/source/net/yacy/cora/document/JSONTokener.java@@ -241,7 +241,7 @@ public class JSONTokener {*/public String nextString(char quote) throws JSONException {char c;- StringBuffer sb = new StringBuffer();+ StringBuilder sb = new StringBuilder();for (;;) {c = next();switch (c) {@@ -297,7 +297,7 @@ public class JSONTokener {* @return A string.*/public String nextTo(char d) throws JSONException {- StringBuffer sb = new StringBuffer();+ StringBuilder sb = new StringBuilder();for (;;) {char c = next();if (c == d || c == 0 || c == '\n' || c == '\r') {@@ -319,7 +319,7 @@ public class JSONTokener {*/public String nextTo(String delimiters) throws JSONException {char c;- StringBuffer sb = new StringBuffer();+ StringBuilder sb = new StringBuilder();for (;;) {c = next();if (delimiters.indexOf(c) >= 0 || c == 0 ||@@ -367,7 +367,7 @@ public class JSONTokener {* formatting character.*/- StringBuffer sb = new StringBuffer();+ StringBuilder sb = new StringBuilder();while (c >= ' ' && ",:]}/\\\"[{;=#".indexOf(c) < 0) {sb.append(c);c = next();@@ -431,6 +431,7 @@ public class JSONTokener {** @return " at {index} [character {character} line {line}]"*/+ @Overridepublic String toString() {return " at " + index + " [character " + this.character + " line " + this.line + "]";}diff --git a/source/net/yacy/cora/document/MultiProtocolURI.java b/source/net/yacy/cora/document/MultiProtocolURI.javaindex 262edfe12..a7c09e95b 100644--- a/source/net/yacy/cora/document/MultiProtocolURI.java+++ b/source/net/yacy/cora/document/MultiProtocolURI.java@@ -3,6 +3,10 @@* Copyright 2010 by Michael Peter Christen* First released 25.5.2010 at http://yacy.net*+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$+ ** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; either@@ -299,7 +303,7 @@ public class MultiProtocolURI implements Serializable, Comparable<MultiProtocolUfor(int i=0; i<domainParts.length; i++) {final String part = domainParts[i];if(!Punycode.isBasic(part)) {- buffer.append("xn--" + Punycode.encode(part));+ buffer.append("xn--").append(Punycode.encode(part));} else {buffer.append(part);}@@ -890,6 +894,7 @@ public class MultiProtocolURI implements Serializable, Comparable<MultiProtocolUreturn u.toString();}+ @Overridepublic int hashCode() {return this.toNormalform(true, true).hashCode();}diff --git a/source/net/yacy/cora/document/RSSMessage.java b/source/net/yacy/cora/document/RSSMessage.javaindex d912073de..f7a0a9bed 100644--- a/source/net/yacy/cora/document/RSSMessage.java+++ b/source/net/yacy/cora/document/RSSMessage.java@@ -3,6 +3,10 @@* Copyright 2007 by Michael Peter Christen* First released 16.7.2007 at http://yacy.net*+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$+ ** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; either@@ -21,6 +25,7 @@package net.yacy.cora.document;import java.text.ParseException;+import java.util.Arrays;import java.util.Comparator;import java.util.Date;import java.util.HashSet;@@ -56,7 +61,7 @@ public class RSSMessage implements Hit, Comparable<RSSMessage>, Comparator<RSSMeprivate Token(String keylist) {String[] k = keylist.split(",");this.keys = new HashSet<String>();- for (String s: k) this.keys.add(s);+ this.keys.addAll(Arrays.asList(k));}public String valueFrom(Map<String, String> map, String dflt) {@@ -115,10 +120,12 @@ public class RSSMessage implements Hit, Comparable<RSSMessage>, Comparator<RSSMereturn Token.link.valueFrom(this.map, "");}+ @Overridepublic boolean equals(Object o) {return (o instanceof RSSMessage) && ((RSSMessage) o).getLink().equals(this.getLink());}+ @Overridepublic int hashCode() {return getLink().hashCode();}@@ -204,6 +211,7 @@ public class RSSMessage implements Hit, Comparable<RSSMessage>, Comparator<RSSMereturn sb.toString();}+ @Overridepublic String toString() {return this.map.toString();}diff --git a/source/net/yacy/cora/document/UTF8.java b/source/net/yacy/cora/document/UTF8.javaindex 6a1e41028..1958ff5e0 100644--- a/source/net/yacy/cora/document/UTF8.java+++ b/source/net/yacy/cora/document/UTF8.java@@ -3,6 +3,10 @@* Copyright 2011 by Michael Peter Christen* First released 25.2.2011 at http://yacy.net*+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$+ ** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; eitherdiff --git a/source/net/yacy/cora/protocol/ByteArrayBody.java b/source/net/yacy/cora/protocol/ByteArrayBody.javaindex be28a5261..a73768f68 100644--- a/source/net/yacy/cora/protocol/ByteArrayBody.java+++ b/source/net/yacy/cora/protocol/ByteArrayBody.java@@ -3,9 +3,9 @@* Copyright 2010 by Sebastian Gaebel* First released 01.07.2010 at http://yacy.net*- * $LastChangedDate: 2010-06-16 17:11:21 +0200 (Mi, 16 Jun 2010) $- * $LastChangedRevision: 6974 $- * $LastChangedBy: sixcooler $+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Publicdiff --git a/source/net/yacy/cora/protocol/ConnectionInfo.java b/source/net/yacy/cora/protocol/ConnectionInfo.javaindex d2912c12a..c47acb21f 100644--- a/source/net/yacy/cora/protocol/ConnectionInfo.java+++ b/source/net/yacy/cora/protocol/ConnectionInfo.java@@ -4,9 +4,9 @@* Copyright 2010 by Michael Peter Christen for LGPL* Dual-Licensing for LGPL granted by Daniel Raap 07.08.2010 by email*- * $LastChangedDate: 2008-03-14 01:16:04 +0100 (Fr, 14 Mrz 2008) $- * $LastChangedRevision: 4558 $- * $LastChangedBy: orbiter $+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Publicdiff --git a/source/net/yacy/cora/protocol/Domains.java b/source/net/yacy/cora/protocol/Domains.javaindex 85fc641d1..599b6ee35 100644--- a/source/net/yacy/cora/protocol/Domains.java+++ b/source/net/yacy/cora/protocol/Domains.java@@ -3,6 +3,10 @@* Copyright 2007 by Michael Peter Christen, [email protected], Frankfurt a. M., Germany* First released 23.7.2007 at http://yacy.net*+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$+ ** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; eitherdiff --git a/source/net/yacy/cora/protocol/Scanner.java b/source/net/yacy/cora/protocol/Scanner.javaindex 2291b1bf2..cfe26efde 100644--- a/source/net/yacy/cora/protocol/Scanner.java+++ b/source/net/yacy/cora/protocol/Scanner.java@@ -3,6 +3,10 @@* Copyright 2010 by Michael Peter Christen, [email protected], Frankfurt am Main, Germany* First released 28.10.2010 at http://yacy.net*+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$+ ** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; either@@ -83,6 +87,7 @@ public class Scanner extends Thread {public MultiProtocolURI url() throws MalformedURLException {return new MultiProtocolURI(this.protocol.name() + "://" + getHostName() + "/");}+ @Overridepublic String toString() {try {return new MultiProtocolURI(this.protocol.name() + "://" + this.inetAddress.getHostAddress() + "/").toNormalform(true, false);@@ -90,9 +95,11 @@ public class Scanner extends Thread {return "";}}+ @Overridepublic int hashCode() {return this.inetAddress.hashCode();}+ @Overridepublic boolean equals(Object o) {return (o instanceof Service) && ((Service) o).protocol == this.protocol && ((Service) o).inetAddress.equals(this.inetAddress);}@@ -141,7 +148,7 @@ public class Scanner extends Thread {*/public static boolean acceptURL(MultiProtocolURI url) {// if the scan range is empty, then all urls are accepted- if (scancacheScanrange == null || scancacheScanrange.size() == 0) return true;+ if (scancacheScanrange == null || scancacheScanrange.isEmpty()) return true;//if (System.currentTimeMillis() > scancacheValidUntilTime) return true;InetAddress a = Domains.dnsResolve(url.getHost()); // try to avoid that!@@ -186,6 +193,7 @@ public class Scanner extends Thread {this(Domains.myIntranetIPs(), concurrentRunner, timeout);}+ @Overridepublic void run() {Service uri;try {@@ -226,6 +234,7 @@ public class Scanner extends Thread {this.service = service;this.starttime = System.currentTimeMillis();}+ @Overridepublic void run() {try {if (TimeoutRequest.ping(this.service.getInetAddress().getHostAddress(), this.service.getProtocol().port, timeout)) {@@ -240,7 +249,7 @@ public class Scanner extends Thread {ftpClient.login("anonymous", "anomic@");List<String> list = ftpClient.list("/", false);ftpClient.CLOSE();- access = list == null || list.size() == 0 ? Access.empty : Access.granted;+ access = list == null || list.isEmpty() ? Access.empty : Access.granted;} catch (IOException e) {access = Access.denied;}@@ -265,9 +274,11 @@ public class Scanner extends Thread {public long age() {return System.currentTimeMillis() - this.starttime;}+ @Overridepublic boolean equals(Object o) {return (o instanceof Runner) && this.service.equals(((Runner) o).service);}+ @Overridepublic int hashCode() {return this.service.hashCode();}diff --git a/source/net/yacy/cora/protocol/TimeoutRequest.java b/source/net/yacy/cora/protocol/TimeoutRequest.javaindex a2cfccf47..da0624ef2 100644--- a/source/net/yacy/cora/protocol/TimeoutRequest.java+++ b/source/net/yacy/cora/protocol/TimeoutRequest.java@@ -3,6 +3,10 @@* Copyright 2010 by Michael Peter Christen, [email protected], Frankfurt a. M., Germany* First released 08.10.2007 at http://yacy.net*+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$+ ** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; eitherdiff --git a/source/net/yacy/cora/protocol/ftp/FTPClient.java b/source/net/yacy/cora/protocol/ftp/FTPClient.javaindex 5b738f53e..7534ae15d 100644--- a/source/net/yacy/cora/protocol/ftp/FTPClient.java+++ b/source/net/yacy/cora/protocol/ftp/FTPClient.java@@ -6,7 +6,11 @@* last major change: 06.05.2004* added html generation for directories: 5.9.2006* migrated to the cora package and re-licensed under lgpl: 23.08.2010- *+ *+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$+ ** This file is part of YaCy Content Integration** This library is free software; you can redistribute it and/or@@ -1144,6 +1148,7 @@ public class FTPClient {** @see java.lang.Object#toString()*/+ @Overridepublic String toString() {final StringBuilder info = new StringBuilder(100);info.append(name);@@ -2531,6 +2536,7 @@ public class FTPClient {ftpClient.login("anonymous", "anomic@");final LinkedBlockingQueue<entryInfo> queue = new LinkedBlockingQueue<entryInfo>();new Thread() {+ @Overridepublic void run() {try {sitelist(ftpClient, "/", queue);@@ -2616,16 +2622,16 @@ public class FTPClient {page.append("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\">\n");page.append("<html><head>\n");- page.append(" <title>" + title + "</title>\n");+ page.append(" <title>").append(title).append("</title>\n");page.append(" <meta name=\"generator\" content=\"YaCy directory listing\">\n");if (metaRobotNoindex) {page.append(" <meta name=\"robots\" content=\"noindex\">\n");}- page.append(" <base href=\"" + base + "\">\n");+ page.append(" <base href=\"").append(base).append("\">\n");page.append("</head><body>\n");- page.append(" <h1>" + title + "</h1>\n");+ page.append(" <h1>").append(title).append("</h1>\n");if (servermessage != null && greeting != null) {- page.append(" <p><pre>Server \"" + servermessage + "\" responded:\n");+ page.append(" <p><pre>Server \"").append(servermessage).append("\" responded:\n");page.append(" \n");page.append(greeting);page.append("\n");@@ -2641,13 +2647,13 @@ public class FTPClient {// with linknameStart = line.indexOf(info.name);page.append(line.substring(0, nameStart));- page.append("<a href=\"" + base + info.name + ((info.type == filetype.directory) ? "/" : "") + "\">" + info.name + "</a>");+ page.append("<a href=\"").append(base).append(info.name).append((info.type == filetype.directory) ? "/" : "").append("\">").append(info.name).append("</a>");nameEnd = nameStart + info.name.length();if (line.length() > nameEnd) {page.append(line.substring(nameEnd));}} else if (line.startsWith("http://") || line.startsWith("ftp://") || line.startsWith("smb://") || line.startsWith("file://")) {- page.append("<a href=\"" + line + "\">" + line + "</a>");+ page.append("<a href=\"").append(line).append("\">").append(line).append("</a>");} else {// rawpage.append(line);@@ -2656,7 +2662,7 @@ public class FTPClient {}page.append(" </pre>\n");page.append(" <hr>\n");- if (system != null) page.append(" <pre>System info: \"" + system + "\"</pre>\n");+ if (system != null) page.append(" <pre>System info: \"").append(system).append("\"</pre>\n");page.append("</body></html>\n");return page;diff --git a/source/net/yacy/cora/protocol/http/GzipCompressingEntity.java b/source/net/yacy/cora/protocol/http/GzipCompressingEntity.javaindex 29a4246ea..faa625cdc 100644--- a/source/net/yacy/cora/protocol/http/GzipCompressingEntity.java+++ b/source/net/yacy/cora/protocol/http/GzipCompressingEntity.java@@ -3,9 +3,9 @@* Copyright 2010 by Sebastian Gaebel* First released 01.07.2010 at http://yacy.net*- * $LastChangedDate: 2010-06-16 17:11:21 +0200 (Mi, 16 Jun 2010) $- * $LastChangedRevision: 6922 $- * $LastChangedBy: sixcooler $+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Publicdiff --git a/source/net/yacy/cora/protocol/http/GzipDecompressingEntity.java b/source/net/yacy/cora/protocol/http/GzipDecompressingEntity.javaindex 797f2bc13..a5d91cce2 100644--- a/source/net/yacy/cora/protocol/http/GzipDecompressingEntity.java+++ b/source/net/yacy/cora/protocol/http/GzipDecompressingEntity.java@@ -3,9 +3,9 @@* Copyright 2010 by Sebastian Gaebel* First released 01.07.2010 at http://yacy.net*- * $LastChangedDate: 2010-06-16 17:11:21 +0200 (Mi, 16 Jun 2010) $- * $LastChangedRevision: 7011 $- * $LastChangedBy: sixcooler $+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Publicdiff --git a/source/net/yacy/cora/protocol/http/GzipRequestInterceptor.java b/source/net/yacy/cora/protocol/http/GzipRequestInterceptor.javaindex 752d938bd..42b1fdf23 100644--- a/source/net/yacy/cora/protocol/http/GzipRequestInterceptor.java+++ b/source/net/yacy/cora/protocol/http/GzipRequestInterceptor.java@@ -3,9 +3,9 @@* Copyright 2010 by Sebastian Gaebel* First released 01.07.2010 at http://yacy.net*- * $LastChangedDate: 2010-06-16 17:11:21 +0200 (Mi, 16 Jun 2010) $- * $LastChangedRevision: 7001 $- * $LastChangedBy: sixcooler $+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Publicdiff --git a/source/net/yacy/cora/protocol/http/GzipResponseInterceptor.java b/source/net/yacy/cora/protocol/http/GzipResponseInterceptor.javaindex da1919992..e2b119901 100644--- a/source/net/yacy/cora/protocol/http/GzipResponseInterceptor.java+++ b/source/net/yacy/cora/protocol/http/GzipResponseInterceptor.java@@ -3,9 +3,9 @@* Copyright 2010 by Sebastian Gaebel* First released 01.07.2010 at http://yacy.net*- * $LastChangedDate: 2010-06-16 17:11:21 +0200 (Mi, 16 Jun 2010) $- * $LastChangedRevision: 7001 $- * $LastChangedBy: sixcooler $+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Publicdiff --git a/source/net/yacy/cora/protocol/http/HTTPClient.java b/source/net/yacy/cora/protocol/http/HTTPClient.javaindex 15a81a139..b80ab8d9d 100644--- a/source/net/yacy/cora/protocol/http/HTTPClient.java+++ b/source/net/yacy/cora/protocol/http/HTTPClient.java@@ -3,9 +3,9 @@* Copyright 2010 by Sebastian Gaebel* First released 01.07.2010 at http://yacy.net*- * $LastChangedDate: 2010-06-16 17:11:21 +0200 (Mi, 16 Jun 2010) $- * $LastChangedRevision: 7020 $- * $LastChangedBy: sixcooler $+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Publicdiff --git a/source/net/yacy/cora/protocol/http/HTTPConnector.java b/source/net/yacy/cora/protocol/http/HTTPConnector.javaindex fa9ae0108..7cf25dcc7 100644--- a/source/net/yacy/cora/protocol/http/HTTPConnector.java+++ b/source/net/yacy/cora/protocol/http/HTTPConnector.java@@ -3,6 +3,10 @@* Copyright 2010 by Michael Peter Christen* First released 25.05.2010 at http://yacy.net*+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$+ ** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; eitherdiff --git a/source/net/yacy/cora/protocol/http/LinkExtractor.java b/source/net/yacy/cora/protocol/http/LinkExtractor.javaindex 1ba832d1f..e36e2ba1f 100644--- a/source/net/yacy/cora/protocol/http/LinkExtractor.java+++ b/source/net/yacy/cora/protocol/http/LinkExtractor.java@@ -3,6 +3,10 @@* Copyright 2011 by Michael Peter Christen* First released 2.01.2011 at http://yacy.net*+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$+ ** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; eitherdiff --git a/source/net/yacy/cora/protocol/http/ProxySettings.java b/source/net/yacy/cora/protocol/http/ProxySettings.javaindex eb5f1b66f..9ad6c30f6 100644--- a/source/net/yacy/cora/protocol/http/ProxySettings.java+++ b/source/net/yacy/cora/protocol/http/ProxySettings.java@@ -3,6 +3,10 @@* Copyright 2010 by Michael Peter Christen* First released 25.05.2010 at http://yacy.net*+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$+ ** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; eitherdiff --git a/source/net/yacy/cora/services/SearchAccumulator.java b/source/net/yacy/cora/services/SearchAccumulator.javaindex ddf2fb114..e99ce5c1b 100644--- a/source/net/yacy/cora/services/SearchAccumulator.java+++ b/source/net/yacy/cora/services/SearchAccumulator.java@@ -3,6 +3,10 @@* Copyright 2010 by Michael Peter Christen* First released 07.01.2011 at http://yacy.net*+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$+ ** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; eitherdiff --git a/source/net/yacy/cora/services/SearchHub.java b/source/net/yacy/cora/services/SearchHub.javaindex d0f1a0fab..cbb9e636c 100644--- a/source/net/yacy/cora/services/SearchHub.java+++ b/source/net/yacy/cora/services/SearchHub.java@@ -3,6 +3,10 @@* Copyright 2010 by Michael Peter Christen* First released 25.05.2010 at http://yacy.net*+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$+ ** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General private* License as published by the Free Software Foundation; either@@ -126,6 +130,7 @@ public class SearchHub {* return a hash code of the search hub.* This is computed using only the query string because that identifies the object*/+ @Overridepublic int hashCode() {return query.hashCode();}diff --git a/source/net/yacy/cora/services/SearchSRURSS.java b/source/net/yacy/cora/services/SearchSRURSS.javaindex e66afc424..03cb552c9 100644--- a/source/net/yacy/cora/services/SearchSRURSS.java+++ b/source/net/yacy/cora/services/SearchSRURSS.java@@ -3,6 +3,10 @@* Copyright 2010 by Michael Peter Christen* First released 06.01.2011 at http://yacy.net*+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$+ ** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; either@@ -92,6 +96,7 @@ public class SearchSRURSS extends Thread implements SearchAccumulator {this.userAgent = userAgent;}+ @Overridepublic void run() {searchSRURSS(results, urlBase, query, timeoutInit, maximumRecordsInit, verify, global, userAgent);int p = 1;@@ -119,6 +124,7 @@ public class SearchSRURSS extends Thread implements SearchAccumulator {final boolean global,final String userAgent) {Thread job = new Thread() {+ @Overridepublic void run() {int startRecord = 0;RSSMessage message;diff --git a/source/net/yacy/cora/storage/ARC.java b/source/net/yacy/cora/storage/ARC.javaindex d0cec8065..bce8447a4 100644--- a/source/net/yacy/cora/storage/ARC.java+++ b/source/net/yacy/cora/storage/ARC.java@@ -4,6 +4,10 @@* Copyright 2009 by Michael Peter Christen, [email protected], Frankfurt a. M., Germany* First released 29.08.2009 at http://yacy.net*+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$+ ** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; eitherdiff --git a/source/net/yacy/cora/storage/ComparableARC.java b/source/net/yacy/cora/storage/ComparableARC.javaindex a21186f99..24ed59eff 100644--- a/source/net/yacy/cora/storage/ComparableARC.java+++ b/source/net/yacy/cora/storage/ComparableARC.java@@ -4,6 +4,10 @@* Copyright 2010 by Michael Peter Christen, [email protected], Frankfurt a. M., Germany* First released 24.08.2010 at http://yacy.net*+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$+ ** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; either@@ -45,9 +49,11 @@ public final class ComparableARC<K, V> extends SimpleARC<K, V> implements Map<K,this.limit = cacheSize;this.keys = new LinkedList<K>();}+ @Overridepublic synchronized V get(Object k) {return super.get(k);}+ @Overridepublic synchronized V put(K k, V v) {V r = super.put(k, v);if (r == null) keys.add(k);@@ -59,9 +65,11 @@ public final class ComparableARC<K, V> extends SimpleARC<K, V> implements Map<K,}return r;}+ @Overridepublic void putAll(Map<? extends K, ? extends V> map) {for (Map.Entry<? extends K, ? extends V> entry: map.entrySet()) put(entry.getKey(), entry.getValue());}+ @Overridepublic synchronized V remove(Object k) {V r = super.remove(k);if (r == null) return null;@@ -70,18 +78,21 @@ public final class ComparableARC<K, V> extends SimpleARC<K, V> implements Map<K,assert removed;return r;}+ @Overridepublic synchronized Map.Entry<K,V> pollFirstEntry() {Map.Entry<K,V> entry = super.pollFirstEntry();boolean removed = removeFromKeys(entry.getKey());assert removed;return entry;}+ @Overridepublic synchronized Map.Entry<K,V> pollLastEntry() {Map.Entry<K,V> entry = super.pollLastEntry();boolean removed = removeFromKeys(entry.getKey());assert removed;return entry;}+ @Overridepublic synchronized void clear() {super.clear();this.keys.clear();diff --git a/source/net/yacy/cora/storage/ConcurrentARC.java b/source/net/yacy/cora/storage/ConcurrentARC.javaindex 741da71bb..bbc4740de 100644--- a/source/net/yacy/cora/storage/ConcurrentARC.java+++ b/source/net/yacy/cora/storage/ConcurrentARC.java@@ -3,6 +3,10 @@* Copyright 2009 by Michael Peter Christen, [email protected], Frankfurt a. M., Germany* First released 17.04.2009 at http://yacy.net*+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$+ ** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; either@@ -93,6 +97,7 @@ public final class ConcurrentARC<K, V> extends AbstractMap<K, V> implements Map<* @param s* @param v*/+ @Overridepublic final V put(final K s, final V v) {return this.arc[getPartition(s)].put(s, v);}@@ -103,6 +108,7 @@ public final class ConcurrentARC<K, V> extends AbstractMap<K, V> implements Map<* @return the value*/@SuppressWarnings("unchecked")+ @Overridepublic final V get(final Object s) {return this.arc[getPartition(s)].get((K) s);}@@ -124,6 +130,7 @@ public final class ConcurrentARC<K, V> extends AbstractMap<K, V> implements Map<* @return*/@SuppressWarnings("unchecked")+ @Overridepublic final boolean containsKey(final Object s) {return this.arc[getPartition(s)].containsKey((K) s);}@@ -134,6 +141,7 @@ public final class ConcurrentARC<K, V> extends AbstractMap<K, V> implements Map<* @return the old value*/@SuppressWarnings("unchecked")+ @Overridepublic final V remove(final Object s) {return this.arc[getPartition(s)].remove((K) s);}@@ -141,6 +149,7 @@ public final class ConcurrentARC<K, V> extends AbstractMap<K, V> implements Map</*** clear the cache*/+ @Overridepublic final void clear() {for (ARC<K, V> a: this.arc) a.clear();}@@ -149,6 +158,7 @@ public final class ConcurrentARC<K, V> extends AbstractMap<K, V> implements Map<* get the size of the ARC.* @return the complete number of entries in the ARC cache*/+ @Overridepublic final int size() {int s = 0;for (ARC<K, V> a: this.arc) s += a.size();@@ -182,6 +192,7 @@ public final class ConcurrentARC<K, V> extends AbstractMap<K, V> implements Map<* a hash code for this ARC* @return a hash code*/+ @Overridepublic int hashCode() {return this.arc.hashCode();}diff --git a/source/net/yacy/cora/storage/DynamicScore.java b/source/net/yacy/cora/storage/DynamicScore.javaindex 3698be16f..f8485b9a3 100644--- a/source/net/yacy/cora/storage/DynamicScore.java+++ b/source/net/yacy/cora/storage/DynamicScore.java@@ -3,6 +3,10 @@* Copyright 2010 by Michael Peter Christen, [email protected], Frankfurt am Main, Germany* First released 14.10.2010 at http://yacy.net*+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$+ ** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; eitherdiff --git a/source/net/yacy/cora/storage/HashARC.java b/source/net/yacy/cora/storage/HashARC.javaindex 0f9c88fda..6d299fdf1 100644--- a/source/net/yacy/cora/storage/HashARC.java+++ b/source/net/yacy/cora/storage/HashARC.java@@ -4,6 +4,10 @@* Copyright 2009 by Michael Peter Christen, [email protected], Frankfurt a. M., Germany* First released 17.04.2009 at http://yacy.net*+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$+ ** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; eitherdiff --git a/source/net/yacy/cora/storage/IntScore.java b/source/net/yacy/cora/storage/IntScore.javaindex 72954f596..f58e11998 100644--- a/source/net/yacy/cora/storage/IntScore.java+++ b/source/net/yacy/cora/storage/IntScore.java@@ -3,6 +3,10 @@* Copyright 2010 by Michael Peter Christen, [email protected], Frankfurt am Main, Germany* First released 14.10.2010 at http://yacy.net*+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$+ ** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; either@@ -76,10 +80,12 @@ public class IntScore implements Comparable<IntScore>, Comparator<IntScore> {if (n > this.value) this.value = n;}+ @Overridepublic boolean equals(Object o) {return (o instanceof IntScore) && this.value == ((IntScore) o).value;}+ @Overridepublic int hashCode() {return this.value;// return (int) (this.value ^ (this.value >>> 32)); // hash code for long values@@ -95,6 +101,7 @@ public class IntScore implements Comparable<IntScore>, Comparator<IntScore> {return o1.compareTo(o2);}+ @Overridepublic String toString() {return Integer.toString(this.value);}diff --git a/source/net/yacy/cora/storage/OutOfLimitsException.java b/source/net/yacy/cora/storage/OutOfLimitsException.javaindex d818972de..bc102bcce 100644--- a/source/net/yacy/cora/storage/OutOfLimitsException.java+++ b/source/net/yacy/cora/storage/OutOfLimitsException.java@@ -3,6 +3,10 @@* Copyright 2006 by Michael Peter Christen, [email protected], Frankfurt am Main, Germany* First released 17.01.2006 at http://yacy.net*+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$+ ** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; eitherdiff --git a/source/net/yacy/cora/storage/ScoreCluster.java b/source/net/yacy/cora/storage/ScoreCluster.javaindex 43648bc67..159a7f36a 100644--- a/source/net/yacy/cora/storage/ScoreCluster.java+++ b/source/net/yacy/cora/storage/ScoreCluster.java@@ -3,6 +3,10 @@* Copyright 2004, 2010 by Michael Peter Christen, [email protected], Frankfurt am Main, Germany* First released 28.09.2004 at http://yacy.net*+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$+ ** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; eitherdiff --git a/source/net/yacy/cora/storage/ScoreMap.java b/source/net/yacy/cora/storage/ScoreMap.javaindex 7475a05c5..daaef0dad 100644--- a/source/net/yacy/cora/storage/ScoreMap.java+++ b/source/net/yacy/cora/storage/ScoreMap.java@@ -3,6 +3,10 @@* Copyright 2010 by Michael Peter Christen, [email protected], Frankfurt am Main, Germany* First released 14.10.2010 at http://yacy.net*+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$+ ** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; either@@ -241,6 +245,7 @@ public class ScoreMap<E> implements DynamicScore<E> {return minObject;}+ @Overridepublic String toString() {return map.toString();}diff --git a/source/net/yacy/cora/storage/SimpleARC.java b/source/net/yacy/cora/storage/SimpleARC.javaindex 58b9fa99f..cfc498e4a 100644--- a/source/net/yacy/cora/storage/SimpleARC.java+++ b/source/net/yacy/cora/storage/SimpleARC.java@@ -4,6 +4,10 @@* Copyright 2009 by Michael Peter Christen, [email protected], Frankfurt a. M., Germany* First released 17.04.2009 at http://yacy.net*+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$+ ** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; either@@ -84,6 +88,7 @@ abstract class SimpleARC<K, V> extends AbstractMap<K, V> implements Map<K, V>, I* @return the value*/@SuppressWarnings("unchecked")+ @Overridepublic final V get(final Object s) {V v = this.levelB.get(s);if (v != null) return v;@@ -123,6 +128,7 @@ abstract class SimpleARC<K, V> extends AbstractMap<K, V> implements Map<K, V>, I* @param s* @return*/+ @Overridepublic final boolean containsKey(final Object s) {if (this.levelB.containsKey(s)) return true;return this.levelA.containsKey(s);@@ -134,6 +140,7 @@ abstract class SimpleARC<K, V> extends AbstractMap<K, V> implements Map<K, V>, I* @param s* @return the old value*/+ @Overridepublic final synchronized V remove(final Object s) {final V r = this.levelB.remove(s);if (r != null) return r;@@ -143,6 +150,7 @@ abstract class SimpleARC<K, V> extends AbstractMap<K, V> implements Map<K, V>, I/*** clear the cache*/+ @Overridepublic final synchronized void clear() {this.levelA.clear();this.levelB.clear();@@ -152,6 +160,7 @@ abstract class SimpleARC<K, V> extends AbstractMap<K, V> implements Map<K, V>, I* get the size of the ARC. this returns the sum of main and ghost cache* @return the complete number of entries in the ARC cache*/+ @Overridepublic final synchronized int size() {return this.levelA.size() + this.levelB.size();}@@ -182,6 +191,7 @@ abstract class SimpleARC<K, V> extends AbstractMap<K, V> implements Map<K, V>, I* a hash code for this ARC* @return the hash code of one of the ARC partial hash tables*/+ @Overridepublic final int hashCode() {return this.levelA.hashCode();}diff --git a/source/net/yacy/cora/storage/StaticScore.java b/source/net/yacy/cora/storage/StaticScore.javaindex 149478468..0bfe8fc7e 100644--- a/source/net/yacy/cora/storage/StaticScore.java+++ b/source/net/yacy/cora/storage/StaticScore.java@@ -3,6 +3,10 @@* Copyright 2010 by Michael Peter Christen, [email protected], Frankfurt am Main, Germany* First released 14.10.2010 at http://yacy.net*+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$+ ** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; either@@ -60,6 +64,7 @@ public interface StaticScore<E> {public E getMinKey();+ @Overridepublic String toString();public Iterator<E> keys(final boolean up);diff --git a/source/net/yacy/cora/storage/WeakPriorityBlockingQueue.java b/source/net/yacy/cora/storage/WeakPriorityBlockingQueue.javaindex f6b92a87d..a230a379c 100644--- a/source/net/yacy/cora/storage/WeakPriorityBlockingQueue.java+++ b/source/net/yacy/cora/storage/WeakPriorityBlockingQueue.java@@ -4,6 +4,10 @@* Copyright 2010 by Michael Peter Christen, [email protected], Frankfurt a. M., Germany* First released 09.09.2010 at http://yacy.net*+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$+ ** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; either@@ -274,7 +278,9 @@ public class WeakPriorityBlockingQueue<E> {public long getWeight();public E getElement();public boolean equals(Element<E> o);+ @Overridepublic int hashCode();+ @Overridepublic String toString();}@@ -294,11 +300,13 @@ public class WeakPriorityBlockingQueue<E> {public boolean equals(Element<E> o) {return this.element.equals(o.getElement());}-++ @Overridepublic int hashCode() {return this.element.hashCode();}+ @Overridepublic String toString() {return element.toString() + "/" + weight;}@@ -365,6 +373,7 @@ public class WeakPriorityBlockingQueue<E> {final WeakPriorityBlockingQueue<String> a = new WeakPriorityBlockingQueue<String>(3);//final Element<String> REVERSE_POISON = new ReverseElement<String>("", Long.MIN_VALUE);new Thread(){+ @Overridepublic void run() {Element<String> e;try {diff --git a/source/net/yacy/dbtest.java b/source/net/yacy/dbtest.javaindex e4109453a..41831d4f0 100644--- a/source/net/yacy/dbtest.java+++ b/source/net/yacy/dbtest.java@@ -83,6 +83,7 @@ public class dbtest {return this.value;}+ @Overridepublic String toString() {return UTF8.String(this.key) + "#" + UTF8.String(this.value);}@@ -448,6 +449,7 @@ final class memprofiler extends Thread {start = System.currentTimeMillis();}+ @Overridepublic void run() {try {int seconds0 = 0, kilobytes0 = 0;diff --git a/source/net/yacy/document/SentenceReader.java b/source/net/yacy/document/SentenceReader.javaindex f43adc407..fd7112a37 100644--- a/source/net/yacy/document/SentenceReader.java+++ b/source/net/yacy/document/SentenceReader.java@@ -3,6 +3,10 @@* Copyright 2011 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany* first published 09.02.2011 on http://yacy.net*+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$+ ** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; eitherdiff --git a/source/net/yacy/document/WordTokenizer.java b/source/net/yacy/document/WordTokenizer.javaindex 27a25fe33..187088f0f 100644--- a/source/net/yacy/document/WordTokenizer.java+++ b/source/net/yacy/document/WordTokenizer.java@@ -3,6 +3,10 @@* Copyright 2011 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany* first published 09.02.2011 on http://yacy.net*+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$+ ** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; eitherdiff --git a/source/net/yacy/gui/InfoPage.java b/source/net/yacy/gui/InfoPage.javaindex 6d17044fe..0b7db7a60 100644--- a/source/net/yacy/gui/InfoPage.java+++ b/source/net/yacy/gui/InfoPage.java@@ -3,9 +3,9 @@* Copyright 2010 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany* First released 05.08.2010 at http://yacy.net*- * $LastChangedDate: 2010-06-16 17:11:21 +0200 (Mi, 16 Jun 2010) $- * $LastChangedRevision: 6922 $- * $LastChangedBy: orbiter $+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Publicdiff --git a/source/net/yacy/gui/YaCyApp.java b/source/net/yacy/gui/YaCyApp.javaindex cc425cc1a..a8db4e271 100644--- a/source/net/yacy/gui/YaCyApp.java+++ b/source/net/yacy/gui/YaCyApp.java@@ -3,9 +3,9 @@* Copyright 2010 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany* First released 05.08.2010 at http://yacy.net*- * $LastChangedDate: 2010-06-16 17:11:21 +0200 (Mi, 16 Jun 2010) $- * $LastChangedRevision: 6922 $- * $LastChangedBy: orbiter $+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public@@ -68,6 +68,7 @@ public class YaCyApp {private static final long serialVersionUID = -8823028472678019008L;ImageObserver obs;public splashCanvas(ImageObserver obs) { this.obs = obs; }+ @Overridepublic void paint(Graphics g) {if (splashImg != null) g.drawImage(splashImg, 0, 0, obs);}@@ -131,6 +132,7 @@ public class YaCyApp {// registering shutdown hooklog.info("Registering Shutdown Hook");Thread t = new Thread() {+ @Overridepublic void run() {app = new Application("YaCy GUI", operation, menues, new InfoPage("localhost", 8090));app.setLocationRelativeTo(null);diff --git a/source/net/yacy/gui/framework/Application.java b/source/net/yacy/gui/framework/Application.javaindex e2ed2f29e..659ed687d 100644--- a/source/net/yacy/gui/framework/Application.java+++ b/source/net/yacy/gui/framework/Application.java@@ -3,9 +3,9 @@* Copyright 2010 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany* First released 05.08.2010 at http://yacy.net*- * $LastChangedDate: 2010-06-16 17:11:21 +0200 (Mi, 16 Jun 2010) $- * $LastChangedRevision: 6922 $- * $LastChangedBy: orbiter $+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public@@ -49,11 +49,13 @@ public class Application extends JFrame implements DocumentListener {getContentPane().setLayout(pageprovider.getPage((JComponent) getContentPane(), this));this.addWindowListener(new WindowAdapter() {+ @Overridepublic void windowClosing(WindowEvent e) {operation.closeAndExit();}});this.addWindowStateListener(new WindowAdapter() {+ @Overridepublic void windowClosing(WindowEvent e) {operation.closeAndExit();}diff --git a/source/net/yacy/gui/framework/Browser.java b/source/net/yacy/gui/framework/Browser.javaindex ae69cc2ee..bb766dd4a 100644--- a/source/net/yacy/gui/framework/Browser.java+++ b/source/net/yacy/gui/framework/Browser.java@@ -3,9 +3,9 @@* Copyright 2010 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany* First released 05.08.2010 at http://yacy.net*- * $LastChangedDate: 2010-06-16 17:11:21 +0200 (Mi, 16 Jun 2010) $- * $LastChangedRevision: 6922 $- * $LastChangedBy: orbiter $+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Publicdiff --git a/source/net/yacy/gui/framework/Layout.java b/source/net/yacy/gui/framework/Layout.javaindex 4e77c4268..f0fb3fe7f 100644--- a/source/net/yacy/gui/framework/Layout.java+++ b/source/net/yacy/gui/framework/Layout.java@@ -3,9 +3,9 @@* Copyright 2010 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany* First released 05.08.2010 at http://yacy.net*- * $LastChangedDate: 2010-06-16 17:11:21 +0200 (Mi, 16 Jun 2010) $- * $LastChangedRevision: 6922 $- * $LastChangedBy: orbiter $+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Publicdiff --git a/source/net/yacy/gui/framework/Operation.java b/source/net/yacy/gui/framework/Operation.javaindex b54fc9be0..274e86266 100644--- a/source/net/yacy/gui/framework/Operation.java+++ b/source/net/yacy/gui/framework/Operation.java@@ -3,9 +3,9 @@* Copyright 2010 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany* First released 05.08.2010 at http://yacy.net*- * $LastChangedDate: 2010-06-16 17:11:21 +0200 (Mi, 16 Jun 2010) $- * $LastChangedRevision: 6922 $- * $LastChangedBy: orbiter $+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Publicdiff --git a/source/net/yacy/gui/framework/Switchboard.java b/source/net/yacy/gui/framework/Switchboard.javaindex 2e597d902..f67d4e943 100644--- a/source/net/yacy/gui/framework/Switchboard.java+++ b/source/net/yacy/gui/framework/Switchboard.java@@ -3,9 +3,9 @@* Copyright 2010 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany* First released 05.08.2010 at http://yacy.net*- * $LastChangedDate: 2010-06-16 17:11:21 +0200 (Mi, 16 Jun 2010) $- * $LastChangedRevision: 6922 $- * $LastChangedBy: orbiter $+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public@@ -85,6 +85,7 @@ public class Switchboard {public InfoUpdater(long steptime) {this.steptime = steptime;}+ @Overridepublic void run() {while (shallrun) {if (InfoBox != null) {@@ -111,6 +112,7 @@ public class Switchboard {this.shutdownSemaphore = semaphore;}+ @Overridepublic void run() {try {if (shallrun()) {diff --git a/source/net/yacy/kelondro/blob/ArrayStack.java b/source/net/yacy/kelondro/blob/ArrayStack.javaindex f4fdc0f5d..2f0f6bb75 100755--- a/source/net/yacy/kelondro/blob/ArrayStack.java+++ b/source/net/yacy/kelondro/blob/ArrayStack.java@@ -4,7 +4,7 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2006-04-02 22:40:07 +0200 (So, 02 Apr 2006) $+// $LastChangedDate$// $LastChangedRevision$// $LastChangedBy$//diff --git a/source/net/yacy/kelondro/blob/BEncodedHeap.java b/source/net/yacy/kelondro/blob/BEncodedHeap.javaindex e889ef288..93f0df744 100644--- a/source/net/yacy/kelondro/blob/BEncodedHeap.java+++ b/source/net/yacy/kelondro/blob/BEncodedHeap.java@@ -2,9 +2,9 @@// (C) 2010 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany// first published 12.01.2010 on http://yacy.net//-// $LastChangedDate: 2008-03-14 01:16:04 +0100 (Fr, 14 Mrz 2008) $-// $LastChangedRevision: 6563 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//@@ -532,6 +532,7 @@ public class BEncodedHeap implements Map<byte[], Map<String, byte[]>>, Iterable</*** a hashcode for the object*/+ @Overridepublic int hashCode() {return this.table.name().hashCode();}diff --git a/source/net/yacy/kelondro/blob/BLOB.java b/source/net/yacy/kelondro/blob/BLOB.javaindex 4ee9e80e3..28e33a3b3 100644--- a/source/net/yacy/kelondro/blob/BLOB.java+++ b/source/net/yacy/kelondro/blob/BLOB.java@@ -1,10 +1,10 @@-// kelondroBLOB.java+// BLOB.java// (C) 2008 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany// first published 08.06.2008 on http://yacy.net//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2006-04-02 22:40:07 +0200 (So, 02 Apr 2006) $+// $LastChangedDate$// $LastChangedRevision$// $LastChangedBy$//diff --git a/source/net/yacy/kelondro/blob/Compressor.java b/source/net/yacy/kelondro/blob/Compressor.javaindex af28e0813..01956728c 100644--- a/source/net/yacy/kelondro/blob/Compressor.java+++ b/source/net/yacy/kelondro/blob/Compressor.java@@ -4,7 +4,7 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2006-04-02 22:40:07 +0200 (So, 02 Apr 2006) $+// $LastChangedDate$// $LastChangedRevision$// $LastChangedBy$//@@ -106,6 +106,7 @@ public class Compressor implements BLOB {private class Worker extends Thread {public Worker() {}+ @Overridepublic void run() {Entity entry;try {diff --git a/source/net/yacy/kelondro/blob/Gap.java b/source/net/yacy/kelondro/blob/Gap.javaindex 8a3cf6f6f..3ae7a3259 100644--- a/source/net/yacy/kelondro/blob/Gap.java+++ b/source/net/yacy/kelondro/blob/Gap.java@@ -1,10 +1,10 @@-// kelondroBLOBGap.java+// Gap.java// (C) 2008 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany// first published 30.12.2008 on http:// yacy.net//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2008-03-14 01:16:04 +0100 (Fr, 14 Mrz 2008) $+// $LastChangedDate$// $LastChangedRevision$// $LastChangedBy$//diff --git a/source/net/yacy/kelondro/blob/Heap.java b/source/net/yacy/kelondro/blob/Heap.javaindex 9e4b2893b..26fb3b9cf 100755--- a/source/net/yacy/kelondro/blob/Heap.java+++ b/source/net/yacy/kelondro/blob/Heap.java@@ -1,10 +1,10 @@-// kelondroBLOBHeap.java+// Heap.java// (C) 2008 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany// first published 09.07.2008 on http://yacy.net//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2008-03-14 01:16:04 +0100 (Fr, 14 Mrz 2008) $+// $LastChangedDate$// $LastChangedRevision$// $LastChangedBy$//diff --git a/source/net/yacy/kelondro/blob/HeapModifier.java b/source/net/yacy/kelondro/blob/HeapModifier.javaindex 8a81fbb0e..4f6da3219 100644--- a/source/net/yacy/kelondro/blob/HeapModifier.java+++ b/source/net/yacy/kelondro/blob/HeapModifier.java@@ -1,8 +1,8 @@-// kelondroBLOBHeapModifier.java+// HeapModifier.java// (C) 2009 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany// first published 05.01.2009 on http://yacy.net//-// $LastChangedDate: 2008-03-14 01:16:04 +0100 (Fr, 14 Mrz 2008) $+// $LastChangedDate$// $LastChangedRevision$// $LastChangedBy$//diff --git a/source/net/yacy/kelondro/blob/HeapReader.java b/source/net/yacy/kelondro/blob/HeapReader.javaindex ee31f07cb..b1ba54839 100644--- a/source/net/yacy/kelondro/blob/HeapReader.java+++ b/source/net/yacy/kelondro/blob/HeapReader.java@@ -2,7 +2,7 @@// (C) 2008 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany// first published 30.12.2008 on http://yacy.net//-// $LastChangedDate: 2008-03-14 01:16:04 +0100 (Fr, 14 Mrz 2008) $+// $LastChangedDate$// $LastChangedRevision$// $LastChangedBy$//diff --git a/source/net/yacy/kelondro/blob/HeapWriter.java b/source/net/yacy/kelondro/blob/HeapWriter.javaindex 155be2705..3df8dec8e 100644--- a/source/net/yacy/kelondro/blob/HeapWriter.java+++ b/source/net/yacy/kelondro/blob/HeapWriter.java@@ -1,8 +1,8 @@-// kelondroBLOBHeapWriter.java+// HeapWriter.java// (C) 2008 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany// first published 30.12.2008 on http://yacy.net//-// $LastChangedDate: 2008-03-14 01:16:04 +0100 (Fr, 14 Mrz 2008) $+// $LastChangedDate$// $LastChangedRevision$// $LastChangedBy$//diff --git a/source/net/yacy/kelondro/blob/MapDataMining.java b/source/net/yacy/kelondro/blob/MapDataMining.javaindex 46a7498ac..2faec210b 100644--- a/source/net/yacy/kelondro/blob/MapDataMining.java+++ b/source/net/yacy/kelondro/blob/MapDataMining.java@@ -1,11 +1,11 @@-// kelondroMapDataMining.java+// MapDataMining.java// -----------------------// (C) 29.01.2007 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany// first published 2004 as part of kelondroMap on http://www.anomic.de//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2006-04-02 22:40:07 +0200 (So, 02 Apr 2006) $+// $LastChangedDate$// $LastChangedRevision$// $LastChangedBy$//diff --git a/source/net/yacy/kelondro/blob/MapHeap.java b/source/net/yacy/kelondro/blob/MapHeap.javaindex d818b8cd9..aacc4ac2d 100644--- a/source/net/yacy/kelondro/blob/MapHeap.java+++ b/source/net/yacy/kelondro/blob/MapHeap.java@@ -1,11 +1,11 @@-// kelondroMap.java+// MapHeap.java// -----------------------// (C) 29.01.2007 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany// first published 2004 as kelondroMap on http://www.anomic.de//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2006-04-02 22:40:07 +0200 (So, 02 Apr 2006) $+// $LastChangedDate$// $LastChangedRevision$// $LastChangedBy$//diff --git a/source/net/yacy/kelondro/blob/ObjectBuffer.java b/source/net/yacy/kelondro/blob/ObjectBuffer.javaindex 2daddef0c..ecaa5ce3f 100644--- a/source/net/yacy/kelondro/blob/ObjectBuffer.java+++ b/source/net/yacy/kelondro/blob/ObjectBuffer.java@@ -1,4 +1,4 @@-// kelondroObjectBuffer.java+// ObjectBuffer.java// ------------------------// (C) by Michael Peter Christen; [email protected]// first published on http://www.anomic.de@@ -6,7 +6,7 @@//// This is a part of the kelondro database, which is a part of YaCy//-// $LastChangedDate: 2006-04-02 22:40:07 +0200 (So, 02 Apr 2006) $+// $LastChangedDate$// $LastChangedRevision$// $LastChangedBy$//diff --git a/source/net/yacy/kelondro/blob/Stack.java b/source/net/yacy/kelondro/blob/Stack.javaindex 8a1d1227b..003fe5659 100644--- a/source/net/yacy/kelondro/blob/Stack.java+++ b/source/net/yacy/kelondro/blob/Stack.java@@ -2,7 +2,7 @@// (C) 2009 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany// first published 03.07.2009 on http://yacy.net//-// $LastChangedDate: 2008-03-14 01:16:04 +0100 (Fr, 14 Mrz 2008) $+// $LastChangedDate$// $LastChangedRevision$// $LastChangedBy$//diff --git a/source/net/yacy/kelondro/blob/Stacks.java b/source/net/yacy/kelondro/blob/Stacks.javaindex 1a0d4f409..877fd5fdc 100644--- a/source/net/yacy/kelondro/blob/Stacks.java+++ b/source/net/yacy/kelondro/blob/Stacks.java@@ -2,7 +2,7 @@// (C) 2009 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany// first published 03.07.2009 on http://yacy.net//-// $LastChangedDate: 2008-03-14 01:16:04 +0100 (Fr, 14 Mrz 2008) $+// $LastChangedDate$// $LastChangedRevision$// $LastChangedBy$//diff --git a/source/net/yacy/kelondro/blob/Tables.java b/source/net/yacy/kelondro/blob/Tables.javaindex 6de561aed..1026cf1d7 100644--- a/source/net/yacy/kelondro/blob/Tables.java+++ b/source/net/yacy/kelondro/blob/Tables.java@@ -4,9 +4,9 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2006-04-02 22:40:07 +0200 (So, 02 Apr 2006) $-// $LastChangedRevision: 6539 $-// $LastChangedBy: low012 $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//@@ -457,6 +457,7 @@ public class Tables {}}+ @Overridepublic String toString() {StringBuilder sb = new StringBuilder();sb.append('{');@@ -502,6 +503,7 @@ public class Tables {return this.pk;}+ @Overridepublic String toString() {StringBuilder sb = new StringBuilder(keymaxlen + 20 * this.size());sb.append(UTF8.String(pk)).append(":").append(super.toString());diff --git a/source/net/yacy/kelondro/data/citation/CitationReferenceRow.java b/source/net/yacy/kelondro/data/citation/CitationReferenceRow.javaindex 31b97c9d9..af046ba08 100644--- a/source/net/yacy/kelondro/data/citation/CitationReferenceRow.java+++ b/source/net/yacy/kelondro/data/citation/CitationReferenceRow.java@@ -4,7 +4,7 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2009-03-20 16:44:59 +0100 (Fr, 20 Mrz 2009) $+// $LastChangedDate$// $LastChangedRevision$// $LastChangedBy$//diff --git a/source/net/yacy/kelondro/data/image/ImageReference.java b/source/net/yacy/kelondro/data/image/ImageReference.javaindex 97305b71a..30a09fbb4 100644--- a/source/net/yacy/kelondro/data/image/ImageReference.java+++ b/source/net/yacy/kelondro/data/image/ImageReference.java@@ -4,9 +4,9 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2009-04-03 15:23:45 +0200 (Fr, 03 Apr 2009) $-// $LastChangedRevision: 5777 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//diff --git a/source/net/yacy/kelondro/data/image/ImageReferenceFactory.java b/source/net/yacy/kelondro/data/image/ImageReferenceFactory.javaindex 109df4ac3..7564f7c67 100644--- a/source/net/yacy/kelondro/data/image/ImageReferenceFactory.java+++ b/source/net/yacy/kelondro/data/image/ImageReferenceFactory.java@@ -4,9 +4,9 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2009-04-03 15:23:45 +0200 (Fr, 03 Apr 2009) $-// $LastChangedRevision: 5777 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//diff --git a/source/net/yacy/kelondro/data/image/ImageReferenceRow.java b/source/net/yacy/kelondro/data/image/ImageReferenceRow.javaindex a8b3e4e17..99d2cc52c 100644--- a/source/net/yacy/kelondro/data/image/ImageReferenceRow.java+++ b/source/net/yacy/kelondro/data/image/ImageReferenceRow.java@@ -4,9 +4,9 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2009-03-20 16:44:59 +0100 (Fr, 20 Mrz 2009) $-// $LastChangedRevision: 5736 $-// $LastChangedBy: borg-0300 $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//@@ -195,6 +195,7 @@ public final class ImageReferenceRow extends AbstractReference implements /*Imagthis.entry = rentry;}+ @Overridepublic ImageReferenceRow clone() {final byte[] b = new byte[urlEntryRow.objectsize];System.arraycopy(entry.bytes(), 0, b, 0, urlEntryRow.objectsize);@@ -263,6 +264,7 @@ public final class ImageReferenceRow extends AbstractReference implements /*Imagreturn new Bitfield(this.entry.getColBytes(col_flags, true));}+ @Overridepublic String toString() {return toPropertyForm();}@@ -273,6 +275,7 @@ public final class ImageReferenceRow extends AbstractReference implements /*Imagreturn false;}+ @Overridepublic int hashCode() {return ByteArray.hashCode(this.metadataHash());}diff --git a/source/net/yacy/kelondro/data/image/ImageReferenceVars.java b/source/net/yacy/kelondro/data/image/ImageReferenceVars.javaindex 90a6c7758..3a2007ac4 100644--- a/source/net/yacy/kelondro/data/image/ImageReferenceVars.java+++ b/source/net/yacy/kelondro/data/image/ImageReferenceVars.java@@ -4,9 +4,9 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2009-03-20 16:44:59 +0100 (Fr, 20 Mrz 2009) $-// $LastChangedRevision: 5736 $-// $LastChangedBy: borg-0300 $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//@@ -149,6 +149,7 @@ public class ImageReferenceVars extends AbstractReference implements ImageReferethis.termFrequency = 0.0;}+ @Overridepublic ImageReferenceVars clone() {final ImageReferenceVars c = new ImageReferenceVars(this.urlHash,@@ -353,6 +354,7 @@ public class ImageReferenceVars extends AbstractReference implements ImageReferethis.wordsintext = this.wordsintext + oe.wordsintext();}+ @Overridepublic int hashCode() {return ByteArray.hashCode(this.urlHash);}diff --git a/source/net/yacy/kelondro/data/meta/DigestURI.java b/source/net/yacy/kelondro/data/meta/DigestURI.javaindex aae8ad63a..cbab5aaf0 100644--- a/source/net/yacy/kelondro/data/meta/DigestURI.java+++ b/source/net/yacy/kelondro/data/meta/DigestURI.java@@ -1,8 +1,8 @@-// yacyURL.java+// DigestURI.java// (C) 2006 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany// first published 13.07.2006 on http://yacy.net//-// $LastChangedDate: 2009-10-10 01:22:22 +0200 (Sa, 10 Okt 2009) $+// $LastChangedDate$// $LastChangedRevision$// $LastChangedBy$//@@ -316,6 +316,7 @@ public class DigestURI extends MultiProtocolURI implements Serializable {/*** checks for local/global IP range and local IP*/+ @Overridepublic final boolean isLocal() {if (this.isFile()) return true;if (this.hash == null) synchronized (this) {diff --git a/source/net/yacy/kelondro/data/meta/URIMetadata.java b/source/net/yacy/kelondro/data/meta/URIMetadata.javaindex e96b84950..827628c39 100644--- a/source/net/yacy/kelondro/data/meta/URIMetadata.java+++ b/source/net/yacy/kelondro/data/meta/URIMetadata.java@@ -1,10 +1,10 @@-// Metadata.java+// URIMetadata.java// (C) 2009 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany// first published 03.04.2009 on http://yacy.net//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2009-03-20 16:44:59 +0100 (Fr, 20 Mrz 2009) $+// $LastChangedDate$// $LastChangedRevision$// $LastChangedBy$//diff --git a/source/net/yacy/kelondro/data/meta/URIMetadataRow.java b/source/net/yacy/kelondro/data/meta/URIMetadataRow.javaindex 334a6fc43..da4b42fad 100644--- a/source/net/yacy/kelondro/data/meta/URIMetadataRow.java+++ b/source/net/yacy/kelondro/data/meta/URIMetadataRow.java@@ -1,10 +1,10 @@-// URLMetadata.java+// URLMetadataRow.java// (C) 2006 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany// first published 2006 on http://www.anomic.de//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2009-03-20 16:44:59 +0100 (Fr, 20 Mrz 2009) $+// $LastChangedDate$// $LastChangedRevision$// $LastChangedBy$//diff --git a/source/net/yacy/kelondro/data/navigation/NavigationReference.java b/source/net/yacy/kelondro/data/navigation/NavigationReference.javaindex 6d0653ebc..77927e98c 100644--- a/source/net/yacy/kelondro/data/navigation/NavigationReference.java+++ b/source/net/yacy/kelondro/data/navigation/NavigationReference.java@@ -4,7 +4,7 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2009-04-03 15:23:45 +0200 (Fr, 03 Apr 2009) $+// $LastChangedDate$// $LastChangedRevision$// $LastChangedBy$//diff --git a/source/net/yacy/kelondro/data/navigation/NavigationReferenceFactory.java b/source/net/yacy/kelondro/data/navigation/NavigationReferenceFactory.javaindex 3b0fa8843..8359dfb1e 100644--- a/source/net/yacy/kelondro/data/navigation/NavigationReferenceFactory.java+++ b/source/net/yacy/kelondro/data/navigation/NavigationReferenceFactory.java@@ -4,7 +4,7 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2009-04-03 15:23:45 +0200 (Fr, 03 Apr 2009) $+// $LastChangedDate$// $LastChangedRevision$// $LastChangedBy$//diff --git a/source/net/yacy/kelondro/data/navigation/NavigationReferenceRow.java b/source/net/yacy/kelondro/data/navigation/NavigationReferenceRow.javaindex 9c0edbd33..f3a52a488 100644--- a/source/net/yacy/kelondro/data/navigation/NavigationReferenceRow.java+++ b/source/net/yacy/kelondro/data/navigation/NavigationReferenceRow.java@@ -4,7 +4,7 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2009-03-20 16:44:59 +0100 (Fr, 20 Mrz 2009) $+// $LastChangedDate$// $LastChangedRevision$// $LastChangedBy$//diff --git a/source/net/yacy/kelondro/data/navigation/NavigationReferenceVars.java b/source/net/yacy/kelondro/data/navigation/NavigationReferenceVars.javaindex 73ab9ba40..f245e603d 100644--- a/source/net/yacy/kelondro/data/navigation/NavigationReferenceVars.java+++ b/source/net/yacy/kelondro/data/navigation/NavigationReferenceVars.java@@ -4,7 +4,7 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2009-03-20 16:44:59 +0100 (Fr, 20 Mrz 2009) $+// $LastChangedDate$// $LastChangedRevision$// $LastChangedBy$//diff --git a/source/net/yacy/kelondro/data/word/Word.java b/source/net/yacy/kelondro/data/word/Word.javaindex 1db7ec555..c5bb43d81 100644--- a/source/net/yacy/kelondro/data/word/Word.java+++ b/source/net/yacy/kelondro/data/word/Word.java@@ -4,7 +4,7 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2009-10-10 03:14:19 +0200 (Sa, 10 Okt 2009) $+// $LastChangedDate$// $LastChangedRevision$// $LastChangedBy$//diff --git a/source/net/yacy/kelondro/data/word/WordReference.java b/source/net/yacy/kelondro/data/word/WordReference.javaindex 78546c8aa..bbb0d5287 100644--- a/source/net/yacy/kelondro/data/word/WordReference.java+++ b/source/net/yacy/kelondro/data/word/WordReference.java@@ -4,7 +4,7 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2009-04-03 15:23:45 +0200 (Fr, 03 Apr 2009) $+// $LastChangedDate$// $LastChangedRevision$// $LastChangedBy$//diff --git a/source/net/yacy/kelondro/data/word/WordReferenceFactory.java b/source/net/yacy/kelondro/data/word/WordReferenceFactory.javaindex 2015648a5..a01d3ce5a 100644--- a/source/net/yacy/kelondro/data/word/WordReferenceFactory.java+++ b/source/net/yacy/kelondro/data/word/WordReferenceFactory.java@@ -4,7 +4,7 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2009-04-03 15:23:45 +0200 (Fr, 03 Apr 2009) $+// $LastChangedDate$// $LastChangedRevision$// $LastChangedBy$//diff --git a/source/net/yacy/kelondro/data/word/WordReferenceRow.java b/source/net/yacy/kelondro/data/word/WordReferenceRow.javaindex b2df23999..2efb0eaba 100644--- a/source/net/yacy/kelondro/data/word/WordReferenceRow.java+++ b/source/net/yacy/kelondro/data/word/WordReferenceRow.java@@ -1,10 +1,10 @@-// ReferenceRow.java+// WordReferenceRow.java// (C) 2006 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany// first published 20.05.2006 on http://yacy.net//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2009-03-20 16:44:59 +0100 (Fr, 20 Mrz 2009) $+// $LastChangedDate$// $LastChangedRevision$// $LastChangedBy$//diff --git a/source/net/yacy/kelondro/data/word/WordReferenceVars.java b/source/net/yacy/kelondro/data/word/WordReferenceVars.javaindex a7a7f55f1..60fe4dda4 100644--- a/source/net/yacy/kelondro/data/word/WordReferenceVars.java+++ b/source/net/yacy/kelondro/data/word/WordReferenceVars.java@@ -1,10 +1,10 @@-// ReferenceVars.java+// WordReferenceVars.java// (C) 2007 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany// first published 07.11.2007 on http://yacy.net//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2009-03-20 16:44:59 +0100 (Fr, 20 Mrz 2009) $+// $LastChangedDate$// $LastChangedRevision$// $LastChangedBy$//@@ -253,7 +253,7 @@ public class WordReferenceVars extends AbstractReference implements WordReferenchitcount, // how often appears this word in the textwordsintext, // total number of wordsphrasesintext, // total number of phrases- positions.size() == 0 ? 1 : positions.iterator().next(), // position of word in all words+ positions.isEmpty() ? 1 : positions.iterator().next(), // position of word in all wordsposinphrase, // position of word in its phraseposofphrase, // number of the phrase where word appearslastModified, // last-modified time of the document where word appearsdiff --git a/source/net/yacy/kelondro/index/BinSearch.java b/source/net/yacy/kelondro/index/BinSearch.javaindex af5ebb5ed..779c3decf 100644--- a/source/net/yacy/kelondro/index/BinSearch.java+++ b/source/net/yacy/kelondro/index/BinSearch.java@@ -6,9 +6,9 @@// Frankfurt, Germany, 2005// created 22.11.2005//-// $LastChangedDate: 2005-09-22 22:01:26 +0200 (Thu, 22 Sep 2005) $-// $LastChangedRevision: 774 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// This program is free software; you can redistribute it and/or modify// it under the terms of the GNU General Public License as published bydiff --git a/source/net/yacy/kelondro/index/BufferedObjectIndex.java b/source/net/yacy/kelondro/index/BufferedObjectIndex.javaindex 8da9012b6..0088c1f4e 100644--- a/source/net/yacy/kelondro/index/BufferedObjectIndex.java+++ b/source/net/yacy/kelondro/index/BufferedObjectIndex.java@@ -3,9 +3,9 @@* Copyright 2010 by Michael Peter Christen* First released 18.4.2010 at http://yacy.net*- * $LastChangedDate: 2010-06-16 17:11:21 +0200 (Mi, 16 Jun 2010) $- * $LastChangedRevision: 6922 $- * $LastChangedBy: orbiter $+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public@@ -179,7 +179,7 @@ public class BufferedObjectIndex implements Index, Iterable<Row.Entry> {}}- public ArrayList<RowCollection> removeDoubles() throws IOException, RowSpaceExceededException {+ public List<RowCollection> removeDoubles() throws IOException, RowSpaceExceededException {synchronized (this.backend) {flushBuffer();return this.backend.removeDoubles();diff --git a/source/net/yacy/kelondro/index/Cache.java b/source/net/yacy/kelondro/index/Cache.javaindex e91a831de..fff5d45d4 100644--- a/source/net/yacy/kelondro/index/Cache.java+++ b/source/net/yacy/kelondro/index/Cache.java@@ -3,9 +3,9 @@* Copyright 2006 by Michael Peter Christen* First released 26.10.2006 at http://yacy.net*- * $LastChangedDate: 2010-06-16 17:11:21 +0200 (Mi, 16 Jun 2010) $- * $LastChangedRevision: 6922 $- * $LastChangedBy: orbiter $+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public@@ -25,7 +25,6 @@package net.yacy.kelondro.index;import java.io.IOException;-import java.util.ArrayList;import java.util.Date;import java.util.HashMap;import java.util.Iterator;@@ -451,7 +450,7 @@ public final class Cache implements Index, Iterable<Row.Entry> {}}- public final synchronized ArrayList<RowCollection> removeDoubles() throws IOException, RowSpaceExceededException {+ public final synchronized List<RowCollection> removeDoubles() throws IOException, RowSpaceExceededException {return index.removeDoubles();// todo: remove reported entries from the cache!!!}diff --git a/source/net/yacy/kelondro/index/Column.java b/source/net/yacy/kelondro/index/Column.javaindex 76c272df3..320582821 100644--- a/source/net/yacy/kelondro/index/Column.java+++ b/source/net/yacy/kelondro/index/Column.java@@ -5,9 +5,9 @@// This is a part of the kelondro database,// which is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2006-04-02 22:40:07 +0200 (So, 02 Apr 2006) $-// $LastChangedRevision: 1986 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//@@ -192,6 +192,7 @@ public final class Column {}}+ @Overridepublic final String toString() {final StringBuilder s = new StringBuilder();switch (celltype) {diff --git a/source/net/yacy/kelondro/index/HandleMap.java b/source/net/yacy/kelondro/index/HandleMap.javaindex 3db2588f9..30f402cb3 100644--- a/source/net/yacy/kelondro/index/HandleMap.java+++ b/source/net/yacy/kelondro/index/HandleMap.java@@ -3,9 +3,9 @@* Copyright 2008 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany* First released 08.04.2008 at http://yacy.net*- * $LastChangedDate: 2010-06-16 17:11:21 +0200 (Mi, 16 Jun 2010) $- * $LastChangedRevision: 6922 $- * $LastChangedBy: orbiter $+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Publicdiff --git a/source/net/yacy/kelondro/index/HandleSet.java b/source/net/yacy/kelondro/index/HandleSet.javaindex 921a74473..ce11fbc6d 100644--- a/source/net/yacy/kelondro/index/HandleSet.java+++ b/source/net/yacy/kelondro/index/HandleSet.java@@ -2,9 +2,9 @@// (C) 2009 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany// first published 10.03.2009 on http://www.anomic.de//-// $LastChangedDate: 2006-04-02 22:40:07 +0200 (So, 02 Apr 2006) $-// $LastChangedRevision: 1986 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//@@ -69,6 +69,7 @@ public final class HandleSet implements Iterable<byte[]>, Cloneable {this.index = RowSet.importRowSet(b, this.rowdef);}+ @Overridepublic HandleSet clone() {return new HandleSet(this.rowdef, this.index.clone());}@@ -225,6 +226,7 @@ public final class HandleSet implements Iterable<byte[]>, Cloneable {index = null;}+ @Overridepublic final String toString() {return this.index.toString();}diff --git a/source/net/yacy/kelondro/index/Index.java b/source/net/yacy/kelondro/index/Index.javaindex 7483f2e5a..85fcf6283 100644--- a/source/net/yacy/kelondro/index/Index.java+++ b/source/net/yacy/kelondro/index/Index.java@@ -3,9 +3,9 @@* Copyright 2005 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany* First released 26.10.2005 at http://yacy.net*- * $LastChangedDate: 2010-06-16 17:11:21 +0200 (Mi, 16 Jun 2010) $- * $LastChangedRevision: 6922 $- * $LastChangedBy: orbiter $+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public@@ -25,7 +25,6 @@package net.yacy.kelondro.index;import java.io.IOException;-import java.util.ArrayList;import java.util.Iterator;import java.util.List;@@ -54,7 +53,7 @@ public interface Index extends Iterable<Row.Entry> {*/public boolean put(Row.Entry row) throws IOException, RowSpaceExceededException;public void addUnique(Row.Entry row) throws RowSpaceExceededException, IOException; // no double-check- public ArrayList<RowCollection> removeDoubles() throws IOException, RowSpaceExceededException; // removes all elements that are double (to be used after all addUnique)+ public List<RowCollection> removeDoubles() throws IOException, RowSpaceExceededException; // removes all elements that are double (to be used after all addUnique)public boolean delete(byte[] key) throws IOException;public Row.Entry remove(byte[] key) throws IOException;public Row.Entry removeOne() throws IOException;diff --git a/source/net/yacy/kelondro/index/IndexTest.java b/source/net/yacy/kelondro/index/IndexTest.javaindex de86b5fba..c431509a5 100644--- a/source/net/yacy/kelondro/index/IndexTest.java+++ b/source/net/yacy/kelondro/index/IndexTest.java@@ -5,9 +5,9 @@// This is a part of the kelondro database,// which is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2006-04-02 22:40:07 +0200 (So, 02 Apr 2006) $-// $LastChangedRevision: 1986 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//diff --git a/source/net/yacy/kelondro/index/RAMIndex.java b/source/net/yacy/kelondro/index/RAMIndex.javaindex f24bd01d0..855f11efc 100644--- a/source/net/yacy/kelondro/index/RAMIndex.java+++ b/source/net/yacy/kelondro/index/RAMIndex.java@@ -3,9 +3,9 @@* Copyright 2008 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany* First released 07.01.2008 at http://yacy.net*- * $LastChangedDate: 2010-06-16 17:11:21 +0200 (Mi, 16 Jun 2010) $- * $LastChangedRevision: 6922 $- * $LastChangedBy: orbiter $+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public@@ -70,6 +70,7 @@ public final class RAMIndex implements Index, Iterable<Row.Entry> {return objectTracker.entrySet().iterator();}+ @Overridepublic RAMIndex clone() {return new RAMIndex(this.name + ".clone", this.rowdef, index0.clone(), index1.clone(), entryComparator);}diff --git a/source/net/yacy/kelondro/index/RAMIndexCluster.java b/source/net/yacy/kelondro/index/RAMIndexCluster.javaindex e6fcfc7c4..76c50f115 100644--- a/source/net/yacy/kelondro/index/RAMIndexCluster.java+++ b/source/net/yacy/kelondro/index/RAMIndexCluster.java@@ -3,9 +3,9 @@* Copyright 2009 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany* First released 12.03.2009 at http://yacy.net*- * $LastChangedDate: 2010-06-16 17:11:21 +0200 (Mi, 16 Jun 2010) $- * $LastChangedRevision: 6922 $- * $LastChangedBy: orbiter $+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public@@ -63,6 +63,7 @@ public final class RAMIndexCluster implements Index, Iterable<Row.Entry>, Cloneafor (RAMIndex i: this.cluster) if (i != null) i.trim();}+ @Overridepublic RAMIndexCluster clone() {RAMIndex[] a = new RAMIndex[this.cluster.length];for (int i = 0; i < this.cluster.length; i++) {diff --git a/source/net/yacy/kelondro/index/Row.java b/source/net/yacy/kelondro/index/Row.javaindex 2448dc258..8309841b4 100644--- a/source/net/yacy/kelondro/index/Row.java+++ b/source/net/yacy/kelondro/index/Row.java@@ -5,9 +5,9 @@// This is a part of the kelondro database,// which is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2006-04-02 22:40:07 +0200 (So, 02 Apr 2006) $-// $LastChangedRevision: 1986 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//@@ -134,6 +134,7 @@ public final class Row {return w;}+ @Overridepublic final String toString() {final StringBuilder s = new StringBuilder();s.append(row[0].toString());@@ -339,6 +340,7 @@ public final class Row {}// compare the content of the primary key+ @Overridepublic boolean equals(final Object obj) {if (this == obj) return true;if (obj == null) return false;@@ -352,6 +354,7 @@ public final class Row {return true;}+ @Overridepublic int hashCode() {final byte[] b = this.getPrimaryKeyBytes();final int len = b.length;@@ -595,6 +598,7 @@ public final class Row {return bb.toString();}+ @Overridepublic final String toString() {return toPropertyForm(true, false, false);}@@ -684,6 +688,7 @@ public final class Row {return true;}+ @Overridepublic boolean equals(final Object obj) {if (this == obj) return true;if (obj == null) return false;@@ -697,6 +702,7 @@ public final class Row {return true;}+ @Overridepublic int hashCode() {return this.toString().hashCode();}diff --git a/source/net/yacy/kelondro/index/RowCollection.java b/source/net/yacy/kelondro/index/RowCollection.javaindex 3c416e91b..4f22b0221 100644--- a/source/net/yacy/kelondro/index/RowCollection.java+++ b/source/net/yacy/kelondro/index/RowCollection.java@@ -2,9 +2,9 @@// (C) 2006 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany// first published 12.01.2006 on http://www.anomic.de//-// $LastChangedDate: 2006-04-02 22:40:07 +0200 (So, 02 Apr 2006) $-// $LastChangedRevision: 1986 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//diff --git a/source/net/yacy/kelondro/index/RowSpaceExceededException.java b/source/net/yacy/kelondro/index/RowSpaceExceededException.javaindex f8bd12de7..5d741d1cf 100644--- a/source/net/yacy/kelondro/index/RowSpaceExceededException.java+++ b/source/net/yacy/kelondro/index/RowSpaceExceededException.java@@ -4,9 +4,9 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2006-04-02 22:40:07 +0200 (So, 02 Apr 2006) $-// $LastChangedRevision: 1986 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//diff --git a/source/net/yacy/kelondro/io/AbstractReader.java b/source/net/yacy/kelondro/io/AbstractReader.javaindex 8ee50b9b9..fdd81694e 100644--- a/source/net/yacy/kelondro/io/AbstractReader.java+++ b/source/net/yacy/kelondro/io/AbstractReader.java@@ -1,12 +1,12 @@-// AbstractRandomAccessWriter.java+// AbstractReader.java// -------------------------------// (C) 2009 by Michael Peter Christen; [email protected]// first published on http://www.anomic.de// Frankfurt, Germany, 09.09.2009//-// $LastChangedDate: 2009-01-30 15:48:11 +0100 (Fr, 30 Jan 2009) $-// $LastChangedRevision: 5539 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// This program is free software; you can redistribute it and/or modify// it under the terms of the GNU General Public License as published bydiff --git a/source/net/yacy/kelondro/io/AbstractWriter.java b/source/net/yacy/kelondro/io/AbstractWriter.javaindex 7302d1b36..480e9a30d 100644--- a/source/net/yacy/kelondro/io/AbstractWriter.java+++ b/source/net/yacy/kelondro/io/AbstractWriter.java@@ -1,12 +1,12 @@-// AbstractRandomAccessWriter.java+// AbstractWriter.java// -------------------------------// (C) 2004 by Michael Peter Christen; [email protected]// first published on http://www.anomic.de// Frankfurt, Germany, 2004//-// $LastChangedDate: 2009-01-30 15:48:11 +0100 (Fr, 30 Jan 2009) $-// $LastChangedRevision: 5539 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// This program is free software; you can redistribute it and/or modify// it under the terms of the GNU General Public License as published bydiff --git a/source/net/yacy/kelondro/io/BufferedRecords.java b/source/net/yacy/kelondro/io/BufferedRecords.javaindex fca3e59f0..b06b1fa3d 100644--- a/source/net/yacy/kelondro/io/BufferedRecords.java+++ b/source/net/yacy/kelondro/io/BufferedRecords.java@@ -2,9 +2,9 @@// (C) 2008 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany// first published 14.01.2008 on http://yacy.net//-// $LastChangedDate: 2006-04-02 22:40:07 +0200 (So, 02 Apr 2006) $-// $LastChangedRevision: 1986 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//@@ -88,6 +88,7 @@ public final class BufferedRecords {if (efs != null) efs.close();}+ @Overrideprotected final synchronized void finalize() {if (this.efs != null) this.close();}diff --git a/source/net/yacy/kelondro/io/ByteCount.java b/source/net/yacy/kelondro/io/ByteCount.javaindex 79b100c3c..ca883df3f 100644--- a/source/net/yacy/kelondro/io/ByteCount.java+++ b/source/net/yacy/kelondro/io/ByteCount.java@@ -5,8 +5,8 @@//Frankfurt, Germany, 2004//// This file is contributed by Sebastian Gäbel-// last major change: $LastChangedDate: 2010-04-23 11:32:29 +0200 (Fr, 23. Apr 2010) $ by $LastChangedBy: sixcooler $-// Revision: $LastChangedRevision: 6835 $+// last major change: $LastChangedDate$ by $LastChangedBy$+// Revision: $LastChangedRevision$////This program is free software; you can redistribute it and/or modify//it under the terms of the GNU General Public License as published bydiff --git a/source/net/yacy/kelondro/io/CachedFileReader.java b/source/net/yacy/kelondro/io/CachedFileReader.javaindex 3a26beb9e..142b6cddf 100644--- a/source/net/yacy/kelondro/io/CachedFileReader.java+++ b/source/net/yacy/kelondro/io/CachedFileReader.java@@ -84,6 +84,7 @@ public final class CachedFileReader extends AbstractReader implements Reader {this.cache = null;}+ @Overrideprotected void finalize() throws Throwable {this.close();super.finalize();diff --git a/source/net/yacy/kelondro/io/CachedFileWriter.java b/source/net/yacy/kelondro/io/CachedFileWriter.javaindex ca6711b2a..4b09953df 100644--- a/source/net/yacy/kelondro/io/CachedFileWriter.java+++ b/source/net/yacy/kelondro/io/CachedFileWriter.java@@ -1,10 +1,13 @@-// CachedRandomAccessFileWriter.java+// CachedFileWriter.java// ---------------------------------// part of The Kelondro Database// (C) by Michael Peter Christen; [email protected]// first published on http://yacy.net-// Frankfurt, Germany, 2004-2008-// last major change: 09.12.2008+// Frankfurt, Germany, 2004-2008s+//+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// This program is free software; you can redistribute it and/or modify// it under the terms of the GNU General Public License as published by@@ -158,6 +161,7 @@ public final class CachedFileWriter extends AbstractWriter implements Writer {this.cachelen = 0;}+ @Overrideprotected final void finalize() throws Throwable {this.close();super.finalize();diff --git a/source/net/yacy/kelondro/io/CachedRecords.java b/source/net/yacy/kelondro/io/CachedRecords.javaindex 62da1747b..71bdc636f 100644--- a/source/net/yacy/kelondro/io/CachedRecords.java+++ b/source/net/yacy/kelondro/io/CachedRecords.java@@ -1,10 +1,10 @@-// Records.java+// CachedRecords.java// (C) 2008 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany// first published 14.01.2008 on http://yacy.net//-// $LastChangedDate: 2006-04-02 22:40:07 +0200 (So, 02 Apr 2006) $-// $LastChangedRevision: 1986 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//diff --git a/source/net/yacy/kelondro/io/Reader.java b/source/net/yacy/kelondro/io/Reader.javaindex 6b71937f3..645cd1c6d 100644--- a/source/net/yacy/kelondro/io/Reader.java+++ b/source/net/yacy/kelondro/io/Reader.java@@ -1,9 +1,13 @@-// RandomAccessReader.java+// Reader.java// -----------------------// (C) 2009 by Michael Peter Christen; [email protected]// first published on http://yacy.net// Frankfurt, Germany, 09.09.2009//+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$+//// This program is free software; you can redistribute it and/or modify// it under the terms of the GNU General Public License as published by// the Free Software Foundation; either version 2 of the License, ordiff --git a/source/net/yacy/kelondro/io/Records.java b/source/net/yacy/kelondro/io/Records.javaindex 46c285888..ad5abc60c 100644--- a/source/net/yacy/kelondro/io/Records.java+++ b/source/net/yacy/kelondro/io/Records.java@@ -2,9 +2,9 @@// (C) 2008 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany// first published 14.01.2008 on http://yacy.net//-// $LastChangedDate: 2006-04-02 22:40:07 +0200 (So, 02 Apr 2006) $-// $LastChangedRevision: 1986 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//diff --git a/source/net/yacy/kelondro/io/Writer.java b/source/net/yacy/kelondro/io/Writer.javaindex 2c66e7f77..c58ce51c5 100644--- a/source/net/yacy/kelondro/io/Writer.java+++ b/source/net/yacy/kelondro/io/Writer.java@@ -1,4 +1,4 @@-// RandomAccessWriter.java+// Writer.java// -----------------------// (C) 2004 by Michael Peter Christen; [email protected]// first published on http://www.anomic.dediff --git a/source/net/yacy/kelondro/order/AbstractOrder.java b/source/net/yacy/kelondro/order/AbstractOrder.javaindex c80779a3d..19839565f 100644--- a/source/net/yacy/kelondro/order/AbstractOrder.java+++ b/source/net/yacy/kelondro/order/AbstractOrder.java@@ -6,7 +6,7 @@// Frankfurt, Germany, 2005// created 29.12.2005//-// $LastChangedDate: 2005-09-22 22:01:26 +0200 (Thu, 22 Sep 2005) $+// $LastChangedDate$// $LastChangedRevision$// $LastChangedBy$//@@ -52,6 +52,7 @@ public abstract class AbstractOrder<A> implements Order<A> {}@SuppressWarnings("unchecked")+ @Overridepublic boolean equals(final Object obj) {if (this == obj) return true;if (obj == null) return false;@@ -63,6 +64,7 @@ public abstract class AbstractOrder<A> implements Order<A> {return thisSig.equals(otherSig);}+ @Overridepublic int hashCode() {return this.signature().hashCode();}diff --git a/source/net/yacy/kelondro/order/Base64Order.java b/source/net/yacy/kelondro/order/Base64Order.javaindex 599349b1c..929c58dea 100644--- a/source/net/yacy/kelondro/order/Base64Order.java+++ b/source/net/yacy/kelondro/order/Base64Order.java@@ -6,7 +6,7 @@// Frankfurt, Germany, 2005// created 03.01.2006//-// $LastChangedDate: 2009-01-30 15:48:11 +0100 (Fr, 30 Jan 2009) $+// $LastChangedDate$// $LastChangedRevision$// $LastChangedBy$//diff --git a/source/net/yacy/kelondro/order/Bitfield.java b/source/net/yacy/kelondro/order/Bitfield.javaindex 3acceb21a..f338bd3c0 100644--- a/source/net/yacy/kelondro/order/Bitfield.java+++ b/source/net/yacy/kelondro/order/Bitfield.java@@ -2,7 +2,7 @@// (C) 2006 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany// first published 22.22.2006 on http://www.anomic.de//-// $LastChangedDate: 2006-04-02 22:40:07 +0200 (So, 02 Apr 2006) $+// $LastChangedDate$// $LastChangedRevision$// $LastChangedBy$//@@ -106,6 +106,7 @@ public class Bitfield implements Cloneable {return sb.toString();}+ @Overridepublic boolean equals(final Object obj) {if (this == obj) return true;if (obj == null) return false;@@ -116,6 +117,7 @@ public class Bitfield implements Cloneable {return true;}+ @Overridepublic int hashCode() {return this.toString().hashCode();}diff --git a/source/net/yacy/kelondro/order/ByteOrder.java b/source/net/yacy/kelondro/order/ByteOrder.javaindex ab249fa13..4018a6810 100644--- a/source/net/yacy/kelondro/order/ByteOrder.java+++ b/source/net/yacy/kelondro/order/ByteOrder.java@@ -5,7 +5,7 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2006-04-02 22:40:07 +0200 (So, 02 Apr 2006) $+// $LastChangedDate$// $LastChangedRevision$// $LastChangedBy$//diff --git a/source/net/yacy/kelondro/order/CloneableIterator.java b/source/net/yacy/kelondro/order/CloneableIterator.javaindex 6888e91e6..e51a86ad2 100644--- a/source/net/yacy/kelondro/order/CloneableIterator.java+++ b/source/net/yacy/kelondro/order/CloneableIterator.java@@ -4,7 +4,7 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2006-04-02 22:40:07 +0200 (So, 02 Apr 2006) $+// $LastChangedDate$// $LastChangedRevision$// $LastChangedBy$//diff --git a/source/net/yacy/kelondro/order/CloneableMapIterator.java b/source/net/yacy/kelondro/order/CloneableMapIterator.javaindex 30d46b4f9..e9b2efbfc 100644--- a/source/net/yacy/kelondro/order/CloneableMapIterator.java+++ b/source/net/yacy/kelondro/order/CloneableMapIterator.java@@ -4,7 +4,7 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2006-04-02 22:40:07 +0200 (So, 02 Apr 2006) $+// $LastChangedDate$// $LastChangedRevision$// $LastChangedBy$//diff --git a/source/net/yacy/kelondro/order/Digest.java b/source/net/yacy/kelondro/order/Digest.javaindex 6f86f276e..cbc9e72c6 100644--- a/source/net/yacy/kelondro/order/Digest.java+++ b/source/net/yacy/kelondro/order/Digest.java@@ -4,7 +4,7 @@// first published 28.12.2008 on http://yacy.net// this uses methods that had been implemented in serverCodings//-// $LastChangedDate: 2006-04-02 22:40:07 +0200 (So, 02 Apr 2006) $+// $LastChangedDate$// $LastChangedRevision$// $LastChangedBy$//diff --git a/source/net/yacy/kelondro/order/MicroDate.java b/source/net/yacy/kelondro/order/MicroDate.javaindex b164f0276..4bb179e97 100644--- a/source/net/yacy/kelondro/order/MicroDate.java+++ b/source/net/yacy/kelondro/order/MicroDate.java@@ -4,7 +4,7 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2006-04-02 22:40:07 +0200 (So, 02 Apr 2006) $+// $LastChangedDate$// $LastChangedRevision$// $LastChangedBy$//diff --git a/source/net/yacy/kelondro/order/NaturalOrder.java b/source/net/yacy/kelondro/order/NaturalOrder.javaindex f7dedca81..88950f62b 100644--- a/source/net/yacy/kelondro/order/NaturalOrder.java+++ b/source/net/yacy/kelondro/order/NaturalOrder.java@@ -6,7 +6,7 @@// Frankfurt, Germany, 2005// created 29.12.2005//-// $LastChangedDate: 2005-09-22 22:01:26 +0200 (Thu, 22 Sep 2005) $+// $LastChangedDate$// $LastChangedRevision$// $LastChangedBy$//diff --git a/source/net/yacy/kelondro/order/Order.java b/source/net/yacy/kelondro/order/Order.javaindex b3fdad7a0..7b15f65d5 100644--- a/source/net/yacy/kelondro/order/Order.java+++ b/source/net/yacy/kelondro/order/Order.java@@ -6,7 +6,7 @@// Frankfurt, Germany, 2005// created 29.12.2005//-// $LastChangedDate: 2005-09-22 22:01:26 +0200 (Thu, 22 Sep 2005) $+// $LastChangedDate$// $LastChangedRevision$// $LastChangedBy$//@@ -50,7 +50,9 @@ public interface Order<A> extends Comparator<A> {public void rotate(A zero); // defines that the ordering rotates, and sets the zero point for the rotation+ @Overridepublic boolean equals(Object o); // used to compare different order objects; they may define the same ordering+ @Overridepublic int hashCode();}diff --git a/source/net/yacy/kelondro/order/RotateIterator.java b/source/net/yacy/kelondro/order/RotateIterator.javaindex 57db45089..c16365e9f 100644--- a/source/net/yacy/kelondro/order/RotateIterator.java+++ b/source/net/yacy/kelondro/order/RotateIterator.java@@ -4,7 +4,7 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2006-04-02 22:40:07 +0200 (So, 02 Apr 2006) $+// $LastChangedDate$// $LastChangedRevision$// $LastChangedBy$//diff --git a/source/net/yacy/kelondro/order/StringOrder.java b/source/net/yacy/kelondro/order/StringOrder.javaindex b55310a01..93049b205 100644--- a/source/net/yacy/kelondro/order/StringOrder.java+++ b/source/net/yacy/kelondro/order/StringOrder.java@@ -5,9 +5,9 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2006-04-02 22:40:07 +0200 (So, 02 Apr 2006) $-// $LastChangedRevision: 1986 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//diff --git a/source/net/yacy/kelondro/rwi/AbstractBufferedIndex.java b/source/net/yacy/kelondro/rwi/AbstractBufferedIndex.javaindex 3387053f3..8b05a9bbd 100644--- a/source/net/yacy/kelondro/rwi/AbstractBufferedIndex.java+++ b/source/net/yacy/kelondro/rwi/AbstractBufferedIndex.java@@ -5,9 +5,9 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2006-04-02 22:40:07 +0200 (So, 02 Apr 2006) $-// $LastChangedRevision: 1986 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//diff --git a/source/net/yacy/kelondro/rwi/AbstractIndex.java b/source/net/yacy/kelondro/rwi/AbstractIndex.javaindex c1cf154ea..ba710503b 100644--- a/source/net/yacy/kelondro/rwi/AbstractIndex.java+++ b/source/net/yacy/kelondro/rwi/AbstractIndex.java@@ -5,9 +5,9 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2006-04-02 22:40:07 +0200 (So, 02 Apr 2006) $-// $LastChangedRevision: 1986 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//diff --git a/source/net/yacy/kelondro/rwi/AbstractReference.java b/source/net/yacy/kelondro/rwi/AbstractReference.javaindex 83ea4c982..74b37ffc4 100644--- a/source/net/yacy/kelondro/rwi/AbstractReference.java+++ b/source/net/yacy/kelondro/rwi/AbstractReference.java@@ -4,9 +4,9 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2009-04-07 11:34:41 +0200 (Di, 07 Apr 2009) $-// $LastChangedRevision: 5783 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//diff --git a/source/net/yacy/kelondro/rwi/BufferedIndex.java b/source/net/yacy/kelondro/rwi/BufferedIndex.javaindex cefc5f0a4..c5843c2c9 100644--- a/source/net/yacy/kelondro/rwi/BufferedIndex.java+++ b/source/net/yacy/kelondro/rwi/BufferedIndex.java@@ -5,9 +5,9 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2006-04-02 22:40:07 +0200 (So, 02 Apr 2006) $-// $LastChangedRevision: 1986 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//diff --git a/source/net/yacy/kelondro/rwi/IODispatcher.java b/source/net/yacy/kelondro/rwi/IODispatcher.javaindex dafffe3b4..c38a865ec 100644--- a/source/net/yacy/kelondro/rwi/IODispatcher.java+++ b/source/net/yacy/kelondro/rwi/IODispatcher.java@@ -1,10 +1,10 @@-// IODespatcher.java+// IODispatcher.java// (C) 2009 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany// first published 20.03.2009 on http://yacy.net//-// $LastChangedDate: 2009-10-10 01:32:08 +0200 (Sa, 10 Okt 2009) $-// $LastChangedRevision: 6393 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//@@ -141,6 +141,7 @@ public class IODispatcher extends Thread {}}+ @Overridepublic void run() {MergeJob mergeJob;DumpJob<? extends Reference> dumpJob;diff --git a/source/net/yacy/kelondro/rwi/Index.java b/source/net/yacy/kelondro/rwi/Index.javaindex badda8a1f..85c18f2f9 100644--- a/source/net/yacy/kelondro/rwi/Index.java+++ b/source/net/yacy/kelondro/rwi/Index.java@@ -5,9 +5,9 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2009-10-10 01:22:22 +0200 (Sa, 10 Okt 2009) $-// $LastChangedRevision: 6392 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//diff --git a/source/net/yacy/kelondro/rwi/IndexCell.java b/source/net/yacy/kelondro/rwi/IndexCell.javaindex 46db6c440..dfa5d9207 100644--- a/source/net/yacy/kelondro/rwi/IndexCell.java+++ b/source/net/yacy/kelondro/rwi/IndexCell.java@@ -1,12 +1,12 @@-// ReverseIndexCell.java+// IndexCell.java// (C) 2009 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany// first published 1.3.2009 on http://yacy.net//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2009-10-10 01:32:08 +0200 (Sa, 10 Okt 2009) $-// $LastChangedRevision: 6393 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//diff --git a/source/net/yacy/kelondro/rwi/IndexReader.java b/source/net/yacy/kelondro/rwi/IndexReader.javaindex 8f440f004..0b9c8697e 100644--- a/source/net/yacy/kelondro/rwi/IndexReader.java+++ b/source/net/yacy/kelondro/rwi/IndexReader.java@@ -4,9 +4,9 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2009-10-10 01:22:22 +0200 (Sa, 10 Okt 2009) $-// $LastChangedRevision: 6392 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//diff --git a/source/net/yacy/kelondro/rwi/Reference.java b/source/net/yacy/kelondro/rwi/Reference.javaindex bf41f4c92..8293b5fce 100644--- a/source/net/yacy/kelondro/rwi/Reference.java+++ b/source/net/yacy/kelondro/rwi/Reference.java@@ -4,9 +4,9 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2009-10-10 01:32:08 +0200 (Sa, 10 Okt 2009) $-// $LastChangedRevision: 6393 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//@@ -40,12 +40,15 @@ public interface Reference {public long lastModified();+ @Overridepublic String toString();public boolean isOlder(Reference other);+ @Overridepublic int hashCode();+ @Overridepublic boolean equals(Object other);public void join(final Reference oe);diff --git a/source/net/yacy/kelondro/rwi/ReferenceContainer.java b/source/net/yacy/kelondro/rwi/ReferenceContainer.javaindex 1cc941d7e..1455d25b3 100644--- a/source/net/yacy/kelondro/rwi/ReferenceContainer.java+++ b/source/net/yacy/kelondro/rwi/ReferenceContainer.java@@ -4,9 +4,9 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2009-10-10 01:32:08 +0200 (Sa, 10 Okt 2009) $-// $LastChangedRevision: 6393 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//diff --git a/source/net/yacy/kelondro/rwi/ReferenceContainerArray.java b/source/net/yacy/kelondro/rwi/ReferenceContainerArray.javaindex 9e0381ad5..09c9aeda3 100644--- a/source/net/yacy/kelondro/rwi/ReferenceContainerArray.java+++ b/source/net/yacy/kelondro/rwi/ReferenceContainerArray.java@@ -2,9 +2,9 @@// (C) 2009 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany// first published 04.01.2009 on http://yacy.net//-// $LastChangedDate: 2009-10-10 01:32:08 +0200 (Sa, 10 Okt 2009) $-// $LastChangedRevision: 6393 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//diff --git a/source/net/yacy/kelondro/rwi/ReferenceContainerCache.java b/source/net/yacy/kelondro/rwi/ReferenceContainerCache.javaindex 4772f7db7..305bbd89c 100644--- a/source/net/yacy/kelondro/rwi/ReferenceContainerCache.java+++ b/source/net/yacy/kelondro/rwi/ReferenceContainerCache.java@@ -4,9 +4,9 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2009-10-10 01:32:08 +0200 (Sa, 10 Okt 2009) $-// $LastChangedRevision: 6393 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//@@ -32,6 +32,7 @@ import java.util.ArrayList;import java.util.Collections;import java.util.Comparator;import java.util.Iterator;+import java.util.List;import java.util.Map;import java.util.concurrent.ConcurrentHashMap;@@ -114,7 +115,7 @@ public final class ReferenceContainerCache<ReferenceType extends Reference> extefinal long startTime = System.currentTimeMillis();// sort the map- ArrayList<ReferenceContainer<ReferenceType>> cachecopy = sortedClone();+ List<ReferenceContainer<ReferenceType>> cachecopy = sortedClone();// write wCachelong wordcount = 0, urlcount = 0;@@ -156,8 +157,8 @@ public final class ReferenceContainerCache<ReferenceType extends Reference> exte* create a clone of the cache content that is sorted using the this.containerOrder* @return the sorted ReferenceContainer[]*/- protected ArrayList<ReferenceContainer<ReferenceType>> sortedClone() {- ArrayList<ReferenceContainer<ReferenceType>> cachecopy = new ArrayList<ReferenceContainer<ReferenceType>>(cache.size());+ protected List<ReferenceContainer<ReferenceType>> sortedClone() {+ final List<ReferenceContainer<ReferenceType>> cachecopy = new ArrayList<ReferenceContainer<ReferenceType>>(cache.size());synchronized (cache) {for (final Map.Entry<ByteArray, ReferenceContainer<ReferenceType>> entry: cache.entrySet()) {if (entry.getValue() != null && entry.getValue().getTermHash() != null) cachecopy.add(entry.getValue());@@ -212,7 +213,7 @@ public final class ReferenceContainerCache<ReferenceType extends Reference> exte// plus the mentioned featuresprivate final boolean rot;- private final ArrayList<ReferenceContainer<ReferenceType>> cachecopy;+ private final List<ReferenceContainer<ReferenceType>> cachecopy;private int p;private byte[] latestTermHash;@@ -256,7 +257,7 @@ public final class ReferenceContainerCache<ReferenceType extends Reference> exteif (!rot) {return null;}- if (this.cachecopy.size() == 0) return null;+ if (this.cachecopy.isEmpty()) return null;p = 0;ReferenceContainer<ReferenceType> c = this.cachecopy.get(this.p++);this.latestTermHash = c.getTermHash();diff --git a/source/net/yacy/kelondro/rwi/ReferenceContainerOrder.java b/source/net/yacy/kelondro/rwi/ReferenceContainerOrder.javaindex 4bdb9540c..e7bbd56f7 100644--- a/source/net/yacy/kelondro/rwi/ReferenceContainerOrder.java+++ b/source/net/yacy/kelondro/rwi/ReferenceContainerOrder.java@@ -4,9 +4,9 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2009-10-10 01:22:22 +0200 (Sa, 10 Okt 2009) $-// $LastChangedRevision: 6392 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//@@ -43,6 +43,7 @@ public class ReferenceContainerOrder<ReferenceType extends Reference> extends Abreturn embeddedOrder.wellformed(a.getTermHash());}+ @Overridepublic void direction(final boolean ascending) {this.embeddedOrder.direction(ascending);}@@ -59,6 +60,7 @@ public class ReferenceContainerOrder<ReferenceType extends Reference> extends Abreturn this.embeddedOrder.equal(a.getTermHash(), b.getTermHash());}+ @Overridepublic void rotate(final ReferenceContainer<ReferenceType> zero) {this.embeddedOrder.rotate(zero.getTermHash());this.zero = new ReferenceContainer<ReferenceType>(this.factory, this.embeddedOrder.zero(), zero);@@ -77,6 +79,7 @@ public class ReferenceContainerOrder<ReferenceType extends Reference> extends Ab}@SuppressWarnings("unchecked")+ @Overridepublic boolean equals(final Object obj) {if (this == obj) return true;if (obj == null) return false;diff --git a/source/net/yacy/kelondro/rwi/ReferenceFactory.java b/source/net/yacy/kelondro/rwi/ReferenceFactory.javaindex 893e1adfd..5b158937c 100644--- a/source/net/yacy/kelondro/rwi/ReferenceFactory.java+++ b/source/net/yacy/kelondro/rwi/ReferenceFactory.java@@ -4,9 +4,9 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2009-04-03 15:23:45 +0200 (Fr, 03 Apr 2009) $-// $LastChangedRevision: 5777 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//diff --git a/source/net/yacy/kelondro/rwi/ReferenceIterator.java b/source/net/yacy/kelondro/rwi/ReferenceIterator.javaindex 0415f330b..49615a82b 100644--- a/source/net/yacy/kelondro/rwi/ReferenceIterator.java+++ b/source/net/yacy/kelondro/rwi/ReferenceIterator.java@@ -4,9 +4,9 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2009-10-10 01:32:08 +0200 (Sa, 10 Okt 2009) $-// $LastChangedRevision: 6393 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//diff --git a/source/net/yacy/kelondro/rwi/TermSearch.java b/source/net/yacy/kelondro/rwi/TermSearch.javaindex a7fce041e..2211536c9 100644--- a/source/net/yacy/kelondro/rwi/TermSearch.java+++ b/source/net/yacy/kelondro/rwi/TermSearch.java@@ -5,9 +5,9 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2006-04-02 22:40:07 +0200 (So, 02 Apr 2006) $-// $LastChangedRevision: 1986 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//diff --git a/source/net/yacy/kelondro/table/ChunkIterator.java b/source/net/yacy/kelondro/table/ChunkIterator.javaindex edc1d6a91..afdea51ed 100644--- a/source/net/yacy/kelondro/table/ChunkIterator.java+++ b/source/net/yacy/kelondro/table/ChunkIterator.java@@ -1,10 +1,10 @@-// kelondroChunkIterator.java+// ChunkIterator.java// (C) 2008 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany// first published 14.01.2008 on http://yacy.net//-// $LastChangedDate: 2006-04-02 22:40:07 +0200 (So, 02 Apr 2006) $-// $LastChangedRevision: 1986 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//diff --git a/source/net/yacy/kelondro/table/Relations.java b/source/net/yacy/kelondro/table/Relations.javaindex d5d03ec73..b9046e0d6 100755--- a/source/net/yacy/kelondro/table/Relations.java+++ b/source/net/yacy/kelondro/table/Relations.java@@ -1,12 +1,12 @@-// kelondroRelations.java+// kRelations.java// (C) 2008 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany// first published 3.07.2008 on http://yacy.net//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2008-03-14 01:16:04 +0100 (Fr, 14 Mrz 2008) $-// $LastChangedRevision: 4558 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//diff --git a/source/net/yacy/kelondro/table/SQLTable.java b/source/net/yacy/kelondro/table/SQLTable.javaindex a450ec1ee..cab0a8316 100644--- a/source/net/yacy/kelondro/table/SQLTable.java+++ b/source/net/yacy/kelondro/table/SQLTable.java@@ -1,12 +1,12 @@-// kelondroSQLTable.java+// SQLTable.java// this class was written by Martin Thelian// (the class was once a sub-class of dbtest.java)//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2006-04-02 22:40:07 +0200 (So, 02 Apr 2006) $-// $LastChangedRevision: 1986 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//diff --git a/source/net/yacy/kelondro/table/SplitTable.java b/source/net/yacy/kelondro/table/SplitTable.javaindex e69dc4f25..da6e2524f 100644--- a/source/net/yacy/kelondro/table/SplitTable.java+++ b/source/net/yacy/kelondro/table/SplitTable.java@@ -1,12 +1,12 @@-// kelondroSplitTable.java+// SplitTable.java// (C) 2006 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany// first published 12.10.2006 on http://www.anomic.de//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2006-04-02 22:40:07 +0200 (So, 02 Apr 2006) $-// $LastChangedRevision: 1986 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//@@ -396,9 +396,9 @@ public class SplitTable implements Index, Iterable<Row.Entry> {table.addUnique(row);}- public ArrayList<RowCollection> removeDoubles() throws IOException, RowSpaceExceededException {+ public List<RowCollection> removeDoubles() throws IOException, RowSpaceExceededException {final Iterator<Index> i = tables.values().iterator();- final ArrayList<RowCollection> report = new ArrayList<RowCollection>();+ final List<RowCollection> report = new ArrayList<RowCollection>();while (i.hasNext()) {report.addAll(i.next().removeDoubles());}diff --git a/source/net/yacy/kelondro/table/Table.java b/source/net/yacy/kelondro/table/Table.javaindex 60c114618..11c021ce9 100644--- a/source/net/yacy/kelondro/table/Table.java+++ b/source/net/yacy/kelondro/table/Table.java@@ -2,9 +2,9 @@// (C) 2008 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany// first published 14.01.2008 on http://yacy.net//-// $LastChangedDate: 2006-04-02 22:40:07 +0200 (So, 02 Apr 2006) $-// $LastChangedRevision: 1986 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//@@ -375,17 +375,16 @@ public class Table implements Index, Iterable<Row.Entry> {* and* @throws*/- public synchronized ArrayList<RowCollection> removeDoubles() throws IOException, RowSpaceExceededException {+ public synchronized List<RowCollection> removeDoubles() throws IOException, RowSpaceExceededException {assert file.size() == index.size() : "file.size() = " + file.size() + ", index.size() = " + index.size();- final ArrayList<RowCollection> report = new ArrayList<RowCollection>();+ final List<RowCollection> report = new ArrayList<RowCollection>();RowSet rows;final TreeSet<Long> d = new TreeSet<Long>();final byte[] b = new byte[rowdef.objectsize];- long L;Row.Entry inconsistentEntry;// iterate over all entries that have inconsistent index referenceslong lastlog = System.currentTimeMillis();- ArrayList<long[]> doubles;+ List<long[]> doubles;try {doubles = index.removeDoubles();} catch (RowSpaceExceededException e) {@@ -397,8 +396,7 @@ public class Table implements Index, Iterable<Row.Entry> {// 'is' is the set of all indexes, that have the same reference// we collect that entries now hererows = new RowSet(this.rowdef, is.length);- for (int j = 0; j < is.length; j++) {- L = is[j];+ for (final long L : is) {assert (int) L < file.size() : "L.intValue() = " + (int) L + ", file.size = " + file.size(); // prevent ooBounds Exceptiond.add(L);if ((int) L >= file.size()) continue; // prevent IndexOutOfBoundsException@@ -438,6 +436,7 @@ public class Table implements Index, Iterable<Row.Entry> {this.index = null;}+ @Overrideprotected void finalize() {if (this.file != null) this.close();}diff --git a/source/net/yacy/kelondro/util/BDecoder.java b/source/net/yacy/kelondro/util/BDecoder.javaindex 41261e1f1..152dde300 100644--- a/source/net/yacy/kelondro/util/BDecoder.java+++ b/source/net/yacy/kelondro/util/BDecoder.java@@ -6,6 +6,10 @@// Frankfurt, Germany, 2010// Created 03.01.2010//+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$+//// this is an BDecoder implementation according to http://wiki.theory.org/BitTorrentSpecification//// This program is free software; you can redistribute it and/or modify@@ -60,6 +64,7 @@ public class BDecoder {public long getInteger();public List<BObject> getList();public Map<String, BObject> getMap();+ @Overridepublic String toString();public void toStream(OutputStream os) throws IOException;}@@ -86,6 +91,7 @@ public class BDecoder {throw new UnsupportedOperationException();}+ @Overridepublic String toString() {throw new UnsupportedOperationException();}@@ -97,12 +103,15 @@ public class BDecoder {public BStringObject(byte[] b) {this.b = b;}+ @Overridepublic BType getType() {return BType.string;}+ @Overridepublic byte[] getString() {return this.b;}+ @Overridepublic String toString() {return UTF8.String(this.b);}@@ -128,12 +137,15 @@ public class BDecoder {public BListObject(List<BObject> l) {this.l = l;}+ @Overridepublic BType getType() {return BType.list;}+ @Overridepublic List<BObject> getList() {return this.l;}+ @Overridepublic String toString() {StringBuilder s = new StringBuilder();s.append("[");@@ -154,12 +166,15 @@ public class BDecoder {public BDictionaryObject(Map<String, BObject> m) {this.m = m;}+ @Overridepublic BType getType() {return BType.dictionary;}+ @Overridepublic Map<String, BObject> getMap() {return this.m;}+ @Overridepublic String toString() {StringBuilder s = new StringBuilder();s.append("{");@@ -189,12 +204,15 @@ public class BDecoder {public BIntegerObject(long i) {this.i = i;}+ @Overridepublic BType getType() {return BType.integer;}+ @Overridepublic long getInteger() {return this.i;}+ @Overridepublic String toString() {return Long.toString(this.i);}diff --git a/source/net/yacy/kelondro/util/BEncoder.java b/source/net/yacy/kelondro/util/BEncoder.javaindex a6560380c..362370c5d 100644--- a/source/net/yacy/kelondro/util/BEncoder.java+++ b/source/net/yacy/kelondro/util/BEncoder.java@@ -2,9 +2,9 @@// (C) 2010 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany// first published 12.01.2010 on http://yacy.net//-// $LastChangedDate: 2008-03-14 01:16:04 +0100 (Fr, 14 Mrz 2008) $-// $LastChangedRevision: 6563 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//diff --git a/source/net/yacy/kelondro/util/ByteArray.java b/source/net/yacy/kelondro/util/ByteArray.javaindex 93cd089dc..795bb8182 100644--- a/source/net/yacy/kelondro/util/ByteArray.java+++ b/source/net/yacy/kelondro/util/ByteArray.java@@ -2,9 +2,9 @@// (C) 2007 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany// first published 30.03.2007 on http://yacy.net//-// $LastChangedDate: 2006-04-02 22:40:07 +0200 (So, 02 Apr 2006) $-// $LastChangedRevision: 1986 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//@@ -81,6 +81,7 @@ public class ByteArray {return order.compare(this.buffer, aoffset, b.buffer, boffset, blength);}+ @Overridepublic int hashCode() {if (this.hash != 0) return this.hash;this.hash = hashCode(this.buffer);@@ -98,6 +99,7 @@ public class ByteArray {return h;}+ @Overridepublic boolean equals(Object other) {ByteArray b = (ByteArray) other;if (buffer == null && b == null) return true;diff --git a/source/net/yacy/kelondro/util/ByteBuffer.java b/source/net/yacy/kelondro/util/ByteBuffer.javaindex 905a920ea..8dc6802e2 100644--- a/source/net/yacy/kelondro/util/ByteBuffer.java+++ b/source/net/yacy/kelondro/util/ByteBuffer.java@@ -1,9 +1,12 @@-// serverByteBuffer.java+// ByteBuffer.java// ---------------------------// (C) by Michael Peter Christen; [email protected]// first published on http://www.anomic.de// Frankfurt, Germany, 2004-// last major change: 11.03.2004+//+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// This program is free software; you can redistribute it and/or modify// it under the terms of the GNU General Public License as published by@@ -146,10 +149,12 @@ public final class ByteBuffer extends OutputStream {buffer[offset + length++] = b;}+ @Overridepublic void write(final byte[] bb) {write(bb, 0, bb.length);}+ @Overridepublic void write(final byte[] bb, final int of, final int le) {while (offset + length + le > buffer.length) grow();System.arraycopy(bb, of, buffer, offset + length, le);@@ -391,6 +396,7 @@ public final class ByteBuffer extends OutputStream {}+ @Overridepublic String toString() {return UTF8.String(buffer, offset, length);}diff --git a/source/net/yacy/kelondro/util/CompressedHashMap.java b/source/net/yacy/kelondro/util/CompressedHashMap.javaindex 4e79542a7..5252099d4 100644--- a/source/net/yacy/kelondro/util/CompressedHashMap.java+++ b/source/net/yacy/kelondro/util/CompressedHashMap.java@@ -1,4 +1,4 @@-// kelondroMHashMap.java+// CompressedHashMap.java// -----------------------// part of YaCy// (C) by Michael Peter Christen; [email protected]@@ -6,6 +6,10 @@// Frankfurt, Germany, 2005// Created 08.12.2005//+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$+//// This program is free software; you can redistribute it and/or modify// it under the terms of the GNU General Public License as published by// the Free Software Foundation; either version 2 of the License, ordiff --git a/source/net/yacy/kelondro/util/ConsoleInterface.java b/source/net/yacy/kelondro/util/ConsoleInterface.javaindex c8578c5fe..932715b7b 100644--- a/source/net/yacy/kelondro/util/ConsoleInterface.java+++ b/source/net/yacy/kelondro/util/ConsoleInterface.java@@ -1,9 +1,13 @@-//consoleInterface.java+//ConsoleInterface.java//-----------------------//part of YaCy//(C) by Detlef Reichl; detlef!reichl()gmx!org//Pforzheim, Germany, 2008//+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$+////This program is free software; you can redistribute it and/or modify//it under the terms of the GNU General Public License as published by//the Free Software Foundation; either version 2 of the License, or@@ -50,6 +54,7 @@ public class ConsoleInterface extends Thread {}}+ @Overridepublic void run() {// a second run adds data! a output.clear() maybe neededtry {diff --git a/source/net/yacy/kelondro/util/EventTracker.java b/source/net/yacy/kelondro/util/EventTracker.javaindex 50e432b63..da7174645 100644--- a/source/net/yacy/kelondro/util/EventTracker.java+++ b/source/net/yacy/kelondro/util/EventTracker.java@@ -4,9 +4,9 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2009-11-05 21:28:37 +0100 (Do, 05 Nov 2009) $-// $LastChangedRevision: 6458 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//diff --git a/source/net/yacy/kelondro/util/FileUtils.java b/source/net/yacy/kelondro/util/FileUtils.javaindex b5e70197f..e21acaca7 100644--- a/source/net/yacy/kelondro/util/FileUtils.java+++ b/source/net/yacy/kelondro/util/FileUtils.java@@ -3,7 +3,10 @@// (C) by Michael Peter Christen; [email protected]// first published on http://www.anomic.de// Frankfurt, Germany, 2004-// last major change: 05.08.2004+//+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// This program is free software; you can redistribute it and/or modify// it under the terms of the GNU General Public License as published bydiff --git a/source/net/yacy/kelondro/util/Formatter.java b/source/net/yacy/kelondro/util/Formatter.javaindex 3c1125fc9..eaec41dcd 100644--- a/source/net/yacy/kelondro/util/Formatter.java+++ b/source/net/yacy/kelondro/util/Formatter.java@@ -1,4 +1,4 @@-// yFormatter.java+// Formatter.java// -----------------------// part of YACY// (C) by Michael Peter Christen; [email protected]@@ -7,6 +7,10 @@//// (C) 2007 Bjoern 'Fuchs' Krombholz; [email protected]//+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$+//// This program is free software; you can redistribute it and/or modify// it under the terms of the GNU General Public License as published by// the Free Software Foundation; either version 2 of the License, ordiff --git a/source/net/yacy/kelondro/util/ISO639.java b/source/net/yacy/kelondro/util/ISO639.javaindex a36100a0f..c66f3176e 100755--- a/source/net/yacy/kelondro/util/ISO639.java+++ b/source/net/yacy/kelondro/util/ISO639.java@@ -4,9 +4,9 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2006-04-02 22:40:07 +0200 (So, 02 Apr 2006) $-// $LastChangedRevision: 1986 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//diff --git a/source/net/yacy/kelondro/util/LookAheadIterator.java b/source/net/yacy/kelondro/util/LookAheadIterator.javaindex 1f5d660a6..acae69cb6 100644--- a/source/net/yacy/kelondro/util/LookAheadIterator.java+++ b/source/net/yacy/kelondro/util/LookAheadIterator.java@@ -4,9 +4,9 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2006-04-02 22:40:07 +0200 (So, 02 Apr 2006) $-// $LastChangedRevision: 6539 $-// $LastChangedBy: low012 $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//diff --git a/source/net/yacy/kelondro/util/MapTools.java b/source/net/yacy/kelondro/util/MapTools.javaindex 8850801af..939cc78d5 100644--- a/source/net/yacy/kelondro/util/MapTools.java+++ b/source/net/yacy/kelondro/util/MapTools.java@@ -1,4 +1,4 @@-// serverCodings.java+// MapTools.java// -----------------------// (C) by Michael Peter Christen; [email protected]// first published on http://www.anomic.dediff --git a/source/net/yacy/kelondro/util/MemoryControl.java b/source/net/yacy/kelondro/util/MemoryControl.javaindex 25aa18a3c..767ca83ac 100644--- a/source/net/yacy/kelondro/util/MemoryControl.java+++ b/source/net/yacy/kelondro/util/MemoryControl.java@@ -1,11 +1,11 @@-// serverMemory.java+// MemoryControl.java// -------------------------------------------// (C) 2005 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany// first published 22.09.2005 on http://yacy.net//-// $LastChangedDate: 2008-12-04 13:54:16 +0100 (Do, 04 Dez 2008) $-// $LastChangedRevision: 5379 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//@@ -56,10 +56,8 @@ public class MemoryControl {final long elapsed = System.currentTimeMillis() - lastGC;if (elapsed > last) {final long before = free();- //System.out.println("vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv");final long start = System.currentTimeMillis();System.gc();- //System.out.println("^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ if you see this many times please report to forum");lastGC = System.currentTimeMillis();final long after = free();gcs[gcs_pos++] = after - before;diff --git a/source/net/yacy/kelondro/util/NamePrefixThreadFactory.java b/source/net/yacy/kelondro/util/NamePrefixThreadFactory.javaindex 5f726df49..d7593fe42 100644--- a/source/net/yacy/kelondro/util/NamePrefixThreadFactory.java+++ b/source/net/yacy/kelondro/util/NamePrefixThreadFactory.java@@ -4,9 +4,9 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2008-03-14 01:16:04 +0100 (Fr, 14 Mrz 2008) $-// $LastChangedRevision: 4558 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//diff --git a/source/net/yacy/kelondro/util/ObjectSpace.java b/source/net/yacy/kelondro/util/ObjectSpace.javaindex 696ba3e29..4c2f1211d 100644--- a/source/net/yacy/kelondro/util/ObjectSpace.java+++ b/source/net/yacy/kelondro/util/ObjectSpace.java@@ -1,4 +1,4 @@-// kelondroObjectSpace.java+// ObjectSpace.java// ------------------------// part of The Kelondro Database// (C) by Michael Peter Christen; [email protected]@@ -6,6 +6,10 @@// Frankfurt, Germany, 2005// created: 12.12.2004//+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$+//// This program is free software; you can redistribute it and/or modify// it under the terms of the GNU General Public License as published by// the Free Software Foundation; either version 2 of the License, or@@ -25,7 +29,9 @@ package net.yacy.kelondro.util;import java.util.ArrayList;import java.util.HashMap;import java.util.Iterator;+import java.util.List;import java.util.Map;+import java.util.NavigableMap;import java.util.TreeMap;public class ObjectSpace {@@ -33,8 +39,8 @@ public class ObjectSpace {private static final int minSize = 10;private static final int maxSize = 256;- private static Map<Integer, ArrayList<byte[]>> objHeap = new HashMap<Integer, ArrayList<byte[]>>();- private static TreeMap<Integer, Integer> aliveNow = new TreeMap<Integer, Integer>();+ private static Map<Integer, List<byte[]>> objHeap = new HashMap<Integer, List<byte[]>>();+ private static NavigableMap<Integer, Integer> aliveNow = new TreeMap<Integer, Integer>();//private static TreeMap aliveMax = new TreeMap();private static void incAlive(final int size) {@@ -57,7 +63,7 @@ public class ObjectSpace {if ((len < minSize) || (len > maxSize)) return new byte[len];incAlive(len);synchronized (objHeap) {- final ArrayList<byte[]> buf = objHeap.get(Integer.valueOf(len));+ final List<byte[]> buf = objHeap.get(Integer.valueOf(len));if (buf == null || buf.isEmpty()) return new byte[len];return buf.remove(buf.size() - 1);}@@ -70,7 +76,7 @@ public class ObjectSpace {decAlive(b.length);synchronized (objHeap) {final Integer i = Integer.valueOf(b.length);- ArrayList<byte[]> buf = objHeap.get(i);+ List<byte[]> buf = objHeap.get(i);if (buf == null) {buf = new ArrayList<byte[]>();buf.add(b);@@ -81,7 +87,7 @@ public class ObjectSpace {}}- public static TreeMap<Integer, Integer> statAlive() {+ public static NavigableMap<Integer, Integer> statAlive() {return aliveNow;}@@ -91,8 +97,8 @@ public class ObjectSpace {// and shows how many Objects are held in this space for usagefinal TreeMap<Integer, Integer> result = new TreeMap<Integer, Integer>();synchronized (objHeap) {- final Iterator<Map.Entry<Integer, ArrayList<byte[]>>> i = objHeap.entrySet().iterator();- Map.Entry<Integer, ArrayList<byte[]>> entry;+ final Iterator<Map.Entry<Integer, List<byte[]>>> i = objHeap.entrySet().iterator();+ Map.Entry<Integer, List<byte[]>> entry;while (i.hasNext()) {entry = i.next();result.put(entry.getKey(), Integer.valueOf(entry.getValue().size()));diff --git a/source/net/yacy/kelondro/util/ReverseMapIterator.java b/source/net/yacy/kelondro/util/ReverseMapIterator.javaindex da4af1ca6..cc590b5c0 100644--- a/source/net/yacy/kelondro/util/ReverseMapIterator.java+++ b/source/net/yacy/kelondro/util/ReverseMapIterator.java@@ -4,9 +4,9 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2009-11-05 21:28:37 +0100 (Do, 05 Nov 2009) $-// $LastChangedRevision: 6458 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//diff --git a/source/net/yacy/kelondro/util/XMLTables.java b/source/net/yacy/kelondro/util/XMLTables.javaindex 8b2dec288..01f584cc7 100644--- a/source/net/yacy/kelondro/util/XMLTables.java+++ b/source/net/yacy/kelondro/util/XMLTables.java@@ -1,4 +1,4 @@-// kelondroXMLTables.java+// XMLTables.java// -------------------------// part of The Kelondro Database// (C) by Michael Peter Christen; [email protected]@@ -6,9 +6,9 @@// Frankfurt, Germany, 2006// created 09.02.2006//-// $LastChangedDate: 2008-08-06 19:43:12 +0000 (Mi, 06 Aug 2008) $-// $LastChangedRevision: 5039 $-// $LastChangedBy: danielr $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// This program is free software; you can redistribute it and/or modify// it under the terms of the GNU General Public License as published by@@ -32,13 +32,14 @@ import java.io.File;import java.io.FileInputStream;import java.io.FileOutputStream;import java.io.IOException;-import java.util.Enumeration;-import java.util.Hashtable;+import java.util.HashMap;+import java.util.Iterator;+import java.util.Map;public class XMLTables {- private Hashtable<String, Hashtable<String, String>> tables;+ private Map<String, Map<String, String>> tables;// tables is a hashtable that contains hashtables as values in the tableprivate File propFile;@@ -47,7 +48,7 @@ public class XMLTables {public XMLTables() {this.propFile = null;this.timestamp = System.currentTimeMillis();- this.tables = new Hashtable<String, Hashtable<String, String>>();+ this.tables = new HashMap<String, Map<String, String>>();}@SuppressWarnings("unchecked")@@ -56,10 +57,10 @@ public class XMLTables {this.timestamp = System.currentTimeMillis();if (propFile.exists()) {final XMLDecoder xmldec = new XMLDecoder(new FileInputStream(propFile));- tables = (Hashtable<String, Hashtable<String, String>>) xmldec.readObject();+ tables = (HashMap<String, Map<String, String>>) xmldec.readObject();xmldec.close();} else {- tables = new Hashtable<String, Hashtable<String, String>>();+ tables = new HashMap<String, Map<String, String>>();}}@@ -103,23 +104,23 @@ public class XMLTables {public int sizeTable(final String table) {// returns number of entries in table; if table does not exist -1- final Hashtable<String, String> l = tables.get(table);+ final Map<String, String> l = tables.get(table);if (l == null) return -1;return l.size();}public void createTable(final String table) throws IOException {// creates a new table- final Hashtable<String, String> l = tables.get(table);+ final Map<String, String> l = tables.get(table);if (l != null)return; // we do not overwite- tables.put(table, new Hashtable<String, String>());+ tables.put(table, new HashMap<String, String>());if (this.propFile != null) commit(false);}public void set(final String table, final String key, String value) throws IOException {if (table != null) {- final Hashtable<String, String> l = tables.get(table);+ final Map<String, String> l = tables.get(table);if (l == null) throw new RuntimeException("Microtables.set: table does not exist");if (value == null) value = "";l.put(key, value);@@ -130,7 +131,7 @@ public class XMLTables {public String get(final String table, final String key, final String deflt) {if (table != null) {- final Hashtable<String, String> l = tables.get(table);+ final Map<String, String> l = tables.get(table);if (l == null)throw new RuntimeException("Microtables.get: table does not exist");if (!l.containsKey(key))@@ -142,7 +143,7 @@ public class XMLTables {public boolean has(final String table, final String key) {if (table != null) {- final Hashtable<String, String> l = tables.get(table);+ final Map<String, String> l = tables.get(table);if (l == null)throw new RuntimeException("Microtables.has: table does not exist");return (l.containsKey(key));@@ -150,12 +151,12 @@ public class XMLTables {return false;}- public Enumeration<String> keys(final String table) {+ public Iterator<String> keys(final String table) {if (table != null) {- final Hashtable<String, String> l = tables.get(table);+ final Map<String, String> l = tables.get(table);if (l == null)throw new RuntimeException("Microtables.keys: table does not exist");- return l.keys();+ return l.keySet().iterator();}return null;}diff --git a/source/net/yacy/kelondro/util/kelondroException.java b/source/net/yacy/kelondro/util/kelondroException.javaindex 4b3b02493..3c5a7791d 100644--- a/source/net/yacy/kelondro/util/kelondroException.java+++ b/source/net/yacy/kelondro/util/kelondroException.java@@ -5,9 +5,9 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2006-04-02 22:40:07 +0200 (So, 02 Apr 2006) $-// $LastChangedRevision: 1986 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//diff --git a/source/net/yacy/kelondro/workflow/AbstractBlockingThread.java b/source/net/yacy/kelondro/workflow/AbstractBlockingThread.javaindex cbec33f99..a1860c2b6 100644--- a/source/net/yacy/kelondro/workflow/AbstractBlockingThread.java+++ b/source/net/yacy/kelondro/workflow/AbstractBlockingThread.java@@ -1,8 +1,8 @@-// serverAbstractBlockingThread.java+// AbstractBlockingThread.java// (C) 2008 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany// first published 27.03.2008 on http://yacy.net//-// $LastChangedDate: 2006-04-02 22:40:07 +0200 (So, 02 Apr 2006) $+// $LastChangedDate$// $LastChangedRevision$// $LastChangedBy$//diff --git a/source/net/yacy/kelondro/workflow/AbstractBusyThread.java b/source/net/yacy/kelondro/workflow/AbstractBusyThread.javaindex 5fe9d82c4..b26f560fe 100644--- a/source/net/yacy/kelondro/workflow/AbstractBusyThread.java+++ b/source/net/yacy/kelondro/workflow/AbstractBusyThread.java@@ -1,8 +1,8 @@-// serverAbstractBusyThread.java+// AbstractBusyThread.java// (C) 2005 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany// first published 14.03.2005 on http://yacy.net//-// $LastChangedDate: 2006-04-02 22:40:07 +0200 (So, 02 Apr 2006) $+// $LastChangedDate$// $LastChangedRevision$// $LastChangedBy$//diff --git a/source/net/yacy/kelondro/workflow/AbstractThread.java b/source/net/yacy/kelondro/workflow/AbstractThread.javaindex 59bc65401..2541a0a41 100644--- a/source/net/yacy/kelondro/workflow/AbstractThread.java+++ b/source/net/yacy/kelondro/workflow/AbstractThread.java@@ -1,8 +1,8 @@-// serverAbstractThread.java+// AbstractThread.java// (C) 2005 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany// first published 14.03.2005 on http://yacy.net//-// $LastChangedDate: 2006-04-02 22:40:07 +0200 (So, 02 Apr 2006) $+// $LastChangedDate$// $LastChangedRevision$// $LastChangedBy$//diff --git a/source/net/yacy/kelondro/workflow/BlockingThread.java b/source/net/yacy/kelondro/workflow/BlockingThread.javaindex 86adc4aa0..e0cb38afc 100644--- a/source/net/yacy/kelondro/workflow/BlockingThread.java+++ b/source/net/yacy/kelondro/workflow/BlockingThread.java@@ -1,8 +1,8 @@-// serverBlockingThread.java+// BlockingThread.java// (C) 2008 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany// first published 27.03.2008 on http://yacy.net//-// $LastChangedDate: 2006-04-02 22:40:07 +0200 (So, 02 Apr 2006) $+// $LastChangedDate$// $LastChangedRevision$// $LastChangedBy$//diff --git a/source/net/yacy/kelondro/workflow/BusyThread.java b/source/net/yacy/kelondro/workflow/BusyThread.javaindex befffbac7..c9577e4e5 100644--- a/source/net/yacy/kelondro/workflow/BusyThread.java+++ b/source/net/yacy/kelondro/workflow/BusyThread.java@@ -1,8 +1,8 @@-// serverBusyThread.java+// BusyThread.java// (C) 2008 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany// first published 27.03.2008 on http://yacy.net//-// $LastChangedDate: 2006-04-02 22:40:07 +0200 (So, 02 Apr 2006) $+// $LastChangedDate$// $LastChangedRevision$// $LastChangedBy$//diff --git a/source/net/yacy/kelondro/workflow/InstantBlockingThread.java b/source/net/yacy/kelondro/workflow/InstantBlockingThread.javaindex de32c7831..2b31126d9 100644--- a/source/net/yacy/kelondro/workflow/InstantBlockingThread.java+++ b/source/net/yacy/kelondro/workflow/InstantBlockingThread.java@@ -1,4 +1,4 @@-// serverInstantBlockingThread.java+// InstantBlockingThread.java// (C) 2008 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany// first published 27.03.2008 on http://yacy.net//diff --git a/source/net/yacy/kelondro/workflow/InstantBusyThread.java b/source/net/yacy/kelondro/workflow/InstantBusyThread.javaindex 44176476e..2b9f10e63 100644--- a/source/net/yacy/kelondro/workflow/InstantBusyThread.java+++ b/source/net/yacy/kelondro/workflow/InstantBusyThread.java@@ -1,9 +1,12 @@-// serverInstantThread.java+// InstantBusyThread.java// -----------------------// (C) by Michael Peter Christen; [email protected]// first published on http://www.anomic.de// Frankfurt, Germany, 2005-// last major change: 14.03.2005+//+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// This program is free software; you can redistribute it and/or modify// it under the terms of the GNU General Public License as published bydiff --git a/source/net/yacy/kelondro/workflow/WorkflowJob.java b/source/net/yacy/kelondro/workflow/WorkflowJob.javaindex 15cf67a24..7f9b538c7 100644--- a/source/net/yacy/kelondro/workflow/WorkflowJob.java+++ b/source/net/yacy/kelondro/workflow/WorkflowJob.java@@ -2,7 +2,7 @@// (C) 2008 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany// first published 29.02.2008 on http://yacy.net//-// $LastChangedDate: 2006-04-02 22:40:07 +0200 (So, 02 Apr 2006) $+// $LastChangedDate$// $LastChangedRevision$// $LastChangedBy$//diff --git a/source/net/yacy/kelondro/workflow/WorkflowProcessor.java b/source/net/yacy/kelondro/workflow/WorkflowProcessor.javaindex 5b2077ba7..b5d6e408f 100644--- a/source/net/yacy/kelondro/workflow/WorkflowProcessor.java+++ b/source/net/yacy/kelondro/workflow/WorkflowProcessor.java@@ -1,8 +1,8 @@-// serverProcessor.java+// WorkflowProcessor.java// (C) 2008 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany// first published 27.02.2008 on http://yacy.net//-// $LastChangedDate: 2006-04-02 22:40:07 +0200 (So, 02 Apr 2006) $+// $LastChangedDate$// $LastChangedRevision$// $LastChangedBy$//diff --git a/source/net/yacy/kelondro/workflow/WorkflowThread.java b/source/net/yacy/kelondro/workflow/WorkflowThread.javaindex 54fe77e6c..353bd1e6c 100644--- a/source/net/yacy/kelondro/workflow/WorkflowThread.java+++ b/source/net/yacy/kelondro/workflow/WorkflowThread.java@@ -1,8 +1,8 @@-// serverThread.java+// WorkflowThread.java// (C) 2005 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany// first published 13.03.2005 on http://yacy.net//-// $LastChangedDate: 2006-04-02 22:40:07 +0200 (So, 02 Apr 2006) $+// $LastChangedDate$// $LastChangedRevision$// $LastChangedBy$//diff --git a/source/net/yacy/migration.java b/source/net/yacy/migration.javaindex 8d7df2dee..183484f3f 100644--- a/source/net/yacy/migration.java+++ b/source/net/yacy/migration.java@@ -3,7 +3,9 @@ package net.yacy;// -----------------------// (C) by Alexander Schier//-// last change: $LastChangedDate: $ by $LastChangedBy: $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// This program is free software; you can redistribute it and/or modify// it under the terms of the GNU General Public License as published bydiff --git a/source/net/yacy/repository/BlacklistFile.java b/source/net/yacy/repository/BlacklistFile.javaindex 9895cae6a..5c516ae09 100644--- a/source/net/yacy/repository/BlacklistFile.java+++ b/source/net/yacy/repository/BlacklistFile.java@@ -4,9 +4,9 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2009-09-29 23:28:49 +0200 (Di, 29 Sep 2009) $-// $LastChangedRevision: 6359 $-// $LastChangedBy: low012 $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//diff --git a/source/net/yacy/repository/FilterEngine.java b/source/net/yacy/repository/FilterEngine.javaindex 7cf63465d..41d08e396 100644--- a/source/net/yacy/repository/FilterEngine.java+++ b/source/net/yacy/repository/FilterEngine.java@@ -34,25 +34,25 @@ public class FilterEngine {public static final int ERR_DOUBLE_OCCURANCE = 6;public static final int ERR_HOST_REGEX = 7;- protected enum listTypes { type1 };-- protected class FilterEntry implements Comparable<FilterEntry> {- public String path;- public EnumSet<listTypes> types;-- public FilterEntry(String path, EnumSet<listTypes>types) {- this.path = path;- this.types = types;- }+ protected enum listTypes { type1 };++ protected class FilterEntry implements Comparable<FilterEntry> {+ public String path;+ public EnumSet<listTypes> types;++ public FilterEntry(String path, EnumSet<listTypes>types) {+ this.path = path;+ this.types = types;+ }- public int compareTo(FilterEntry fe) {- return this.path.compareToIgnoreCase(fe.path);- }- }+ public int compareTo(FilterEntry fe) {+ return this.path.compareToIgnoreCase(fe.path);+ }+ }protected HashARC<DigestURI, EnumSet<listTypes>> cachedUrlHashs = null;- protected HashMap<String, Set<FilterEntry>> hostpaths_matchable = null;- protected HashMap<String, Set<FilterEntry>> hostpaths_notmatchable = null;+ protected Map<String, Set<FilterEntry>> hostpaths_matchable = null;+ protected Map<String, Set<FilterEntry>> hostpaths_notmatchable = null;public FilterEngine() {diff --git a/source/net/yacy/upnp/Discovery.java b/source/net/yacy/upnp/Discovery.javaindex 910656250..74629837e 100644--- a/source/net/yacy/upnp/Discovery.java+++ b/source/net/yacy/upnp/Discovery.java@@ -206,7 +206,7 @@ public class Discovery {DiscoveryListener.getInstance().unRegisterResultsHandler( handler, searchTarget );- if ( devices.size() == 0 ) {+ if ( devices.isEmpty() ) {return null;}int j = 0;@@ -238,7 +238,7 @@ public class Discovery {java.net.MulticastSocket skt = new java.net.MulticastSocket( null );skt.bind( new InetSocketAddress( src, bindPort ) );skt.setTimeToLive( ttl );- StringBuffer packet = new StringBuffer();+ StringBuilder packet = new StringBuilder();packet.append( "M-SEARCH * HTTP/1.1\r\n" );packet.append( "HOST: 239.255.255.250:1900\r\n" );packet.append( "MAN: \"ssdp:discover\"\r\n" );diff --git a/source/net/yacy/upnp/DiscoveryAdvertisement.java b/source/net/yacy/upnp/DiscoveryAdvertisement.javaindex 1d1c9975d..5423bf211 100644--- a/source/net/yacy/upnp/DiscoveryAdvertisement.java+++ b/source/net/yacy/upnp/DiscoveryAdvertisement.java@@ -155,7 +155,7 @@ public class DiscoveryAdvertisement implements Runnable {Set<DiscoveryEventHandler> handlers = aliveRegistered.get( nt );if ( handlers != null ) {handlers.remove( eventHandler );- if ( handlers.size() == 0 ) {+ if (handlers.isEmpty()) {aliveRegistered.remove( nt );}}@@ -163,14 +163,14 @@ public class DiscoveryAdvertisement implements Runnable {Set<DiscoveryEventHandler> handlers = byeByeRegistered.get( nt );if ( handlers != null ) {handlers.remove( eventHandler );- if ( handlers.size() == 0 ) {+ if (handlers.isEmpty()) {byeByeRegistered.remove( nt );}}} else {throw new IllegalArgumentException( "Unknown notificationEvent type" );}- if ( aliveRegistered.size() == 0 && byeByeRegistered.size() == 0 ) {+ if (aliveRegistered.isEmpty() && byeByeRegistered.isEmpty()) {stopDevicesListenerThread();}}diff --git a/source/net/yacy/upnp/DiscoveryListener.java b/source/net/yacy/upnp/DiscoveryListener.javaindex f8f2b9ac8..5b0427dc4 100644--- a/source/net/yacy/upnp/DiscoveryListener.java+++ b/source/net/yacy/upnp/DiscoveryListener.java@@ -128,11 +128,11 @@ public class DiscoveryListener implements Runnable {Set<DiscoveryResultsHandler> handlers = registeredHandlers.get( searchTarget );if ( handlers != null ) {handlers.remove( resultsHandler );- if ( handlers.size() == 0 ) {+ if (handlers.isEmpty()) {registeredHandlers.remove( searchTarget );}}- if ( registeredHandlers.size() == 0 ) {+ if (registeredHandlers.isEmpty()) {stopDevicesListenerThread();}}diff --git a/source/net/yacy/upnp/HttpResponse.java b/source/net/yacy/upnp/HttpResponse.javaindex 5b3d888ad..ad3df87ce 100644--- a/source/net/yacy/upnp/HttpResponse.java+++ b/source/net/yacy/upnp/HttpResponse.java@@ -72,7 +72,7 @@ public class HttpResponse {throw new IllegalArgumentException( "Empty HTTP response message" );}boolean bodyParsing = false;- StringBuffer bodyParsed = new StringBuffer();+ StringBuilder bodyParsed = new StringBuilder();fields = new HashMap<String, String>();String[] lines = rawHttpResponse.split( "\\r\\n" );this.header = lines[0].trim();diff --git a/source/net/yacy/upnp/JXPathParser.java b/source/net/yacy/upnp/JXPathParser.javaindex 8095200cc..213d5df55 100644--- a/source/net/yacy/upnp/JXPathParser.java+++ b/source/net/yacy/upnp/JXPathParser.java@@ -71,7 +71,7 @@ public class JXPathParser implements XMLParser {private char buggyChar = (char)0;public Object parseXML( InputStream in ){- StringBuffer xml = new StringBuffer();+ StringBuilder xml = new StringBuilder();try {byte[] buffer = new byte[512];int readen = 0;diff --git a/source/net/yacy/upnp/ServiceEventMessageParser.java b/source/net/yacy/upnp/ServiceEventMessageParser.javaindex acbfbe587..af5e0c648 100644--- a/source/net/yacy/upnp/ServiceEventMessageParser.java+++ b/source/net/yacy/upnp/ServiceEventMessageParser.java@@ -73,6 +73,7 @@ public class ServiceEventMessageParser extends org.xml.sax.helpers.DefaultHandlereturn changedStateVars;}+ @Overridepublic void characters( char[] ch, int start, int length ) {if ( currentPropName != null ) {String origChars = changedStateVars.get( currentPropName );@@ -85,6 +86,7 @@ public class ServiceEventMessageParser extends org.xml.sax.helpers.DefaultHandle}}+ @Overridepublic void startElement( String uri, String localName, String qName, Attributes attributes ) {if ( localName.equals( "property" ) ) {readPropertyName = true;@@ -93,6 +95,7 @@ public class ServiceEventMessageParser extends org.xml.sax.helpers.DefaultHandle}}+ @Overridepublic void endElement( String uri, String localName, String qName ) {if ( currentPropName != null && localName.equals( currentPropName ) ) {readPropertyName = false;diff --git a/source/net/yacy/upnp/ServicesEventing.java b/source/net/yacy/upnp/ServicesEventing.javaindex 38d1fd2ca..160012459 100644--- a/source/net/yacy/upnp/ServicesEventing.java+++ b/source/net/yacy/upnp/ServicesEventing.java@@ -164,7 +164,7 @@ public class ServicesEventing implements Runnable {out.flush();InputStream in = skt.getInputStream();- StringBuffer data = new StringBuffer();+ StringBuilder data = new StringBuilder();int readen = 0;byte[] buffer = new byte[256];while ( ( readen = in.read( buffer ) ) != -1 ) {@@ -261,7 +261,7 @@ public class ServicesEventing implements Runnable {synchronized( registered ) {registered.remove( sub );}- if ( registered.size() == 0 ) {+ if (registered.isEmpty()) {stopServicesEventingThread();}@@ -277,7 +277,7 @@ public class ServicesEventing implements Runnable {out.flush();InputStream in = skt.getInputStream();- StringBuffer data = new StringBuffer();+ StringBuilder data = new StringBuilder();int readen = 0;byte[] buffer = new byte[256];while ( ( readen = in.read( buffer ) ) != -1 ) {@@ -362,7 +362,7 @@ public class ServicesEventing implements Runnable {OutputStream out = client.getOutputStream();int readen = 0;- StringBuffer data = new StringBuffer();+ StringBuilder data = new StringBuilder();byte[] buffer = new byte[256];boolean EOF = false;while ( !EOF && ( readen = in.read( buffer ) ) != -1 ) {diff --git a/source/net/yacy/upnp/devices/UPNPDevice.java b/source/net/yacy/upnp/devices/UPNPDevice.javaindex a247e0e3d..d1e59a5ea 100644--- a/source/net/yacy/upnp/devices/UPNPDevice.java+++ b/source/net/yacy/upnp/devices/UPNPDevice.java@@ -281,7 +281,7 @@ public class UPNPDevice {rtrVal.add( service );}}- if ( rtrVal.size() == 0 ) {+ if ( rtrVal.isEmpty() ) {return null;}return rtrVal;@@ -291,6 +291,7 @@ public class UPNPDevice {* The toString return the device type* @return the device type*/+ @Overridepublic String toString() {return getDeviceType();}diff --git a/source/net/yacy/upnp/devices/UPNPRootDevice.java b/source/net/yacy/upnp/devices/UPNPRootDevice.javaindex 867042dcb..4b0bfd9ed 100644--- a/source/net/yacy/upnp/devices/UPNPRootDevice.java+++ b/source/net/yacy/upnp/devices/UPNPRootDevice.java@@ -439,7 +439,7 @@ public class UPNPRootDevice extends UPNPDevice {java.io.InputStream in = deviceDefLoc.openConnection().getInputStream();int readen = 0;byte[] buff = new byte[512];- StringBuffer strBuff = new StringBuffer();+ StringBuilder strBuff = new StringBuilder();while( ( readen = in.read( buff ) ) != -1 ) {strBuff.append( new String( buff, 0, readen ) );}diff --git a/source/net/yacy/upnp/impls/InternetGatewayDevice.java b/source/net/yacy/upnp/impls/InternetGatewayDevice.javaindex 0ccd48479..d86609e3e 100644--- a/source/net/yacy/upnp/impls/InternetGatewayDevice.java+++ b/source/net/yacy/upnp/impls/InternetGatewayDevice.java@@ -263,7 +263,7 @@ public class InternetGatewayDevice {if ( log.isDebugEnabled() ) log.debug( "UnsupportedOperationException during discovery " + ex.getMessage() );}}- if ( valid.size() == 0 ) {+ if ( valid.isEmpty() ) {return null;}rtrVal = new InternetGatewayDevice[valid.size()];diff --git a/source/net/yacy/upnp/messages/ActionMessage.java b/source/net/yacy/upnp/messages/ActionMessage.javaindex d6772f469..a8e080584 100644--- a/source/net/yacy/upnp/messages/ActionMessage.java+++ b/source/net/yacy/upnp/messages/ActionMessage.java@@ -216,7 +216,7 @@ public class ActionMessage {private String getResponseBody( InputStream in ) throws IOException {byte[] buffer = new byte[256];int readen = 0;- StringBuffer content = new StringBuffer( 256 );+ StringBuilder content = new StringBuilder( 256 );while ( ( readen = in.read( buffer ) ) != -1 ) {content.append( new String( buffer, 0 , readen ) );}diff --git a/source/net/yacy/upnp/messages/ActionMessageResponseParser.java b/source/net/yacy/upnp/messages/ActionMessageResponseParser.javaindex 651f1fcc5..bec8b2e7e 100644--- a/source/net/yacy/upnp/messages/ActionMessageResponseParser.java+++ b/source/net/yacy/upnp/messages/ActionMessageResponseParser.java@@ -91,6 +91,7 @@ public class ActionMessageResponseParser extends org.xml.sax.helpers.DefaultHandreturn result;}+ @Overridepublic void characters( char[] ch, int start, int length ) {if ( parseOutputParams ) {if ( parsedResultOutArg != null ) {@@ -122,6 +123,7 @@ public class ActionMessageResponseParser extends org.xml.sax.helpers.DefaultHand}}+ @Overridepublic void startElement( String uri, String localName, String qName, Attributes attributes ) {if ( parseOutputParams ) {ServiceActionArgument arg = serviceAction.getActionArgument( localName );@@ -150,6 +152,7 @@ public class ActionMessageResponseParser extends org.xml.sax.helpers.DefaultHand}}+ @Overridepublic void endElement( String uri, String localName, String qName ) {if ( parsedResultOutArg != null && parsedResultOutArg.getName().equals( localName ) ) {parsedResultOutArg = null;diff --git a/source/net/yacy/upnp/messages/ActionResponse.java b/source/net/yacy/upnp/messages/ActionResponse.javaindex 257ec1a82..d25eceb75 100644--- a/source/net/yacy/upnp/messages/ActionResponse.java+++ b/source/net/yacy/upnp/messages/ActionResponse.java@@ -87,8 +87,9 @@ public class ActionResponse {outArgumentsVals.put( arg.getName(), value );}+ @Overridepublic String toString() {- StringBuffer rtrVal = new StringBuffer();+ StringBuilder rtrVal = new StringBuilder();for ( Iterator<String> i = outArguments.keySet().iterator(); i.hasNext(); ) {String name = i.next();String value = outArgumentsVals.get( name );diff --git a/source/net/yacy/upnp/messages/StateVariableMessage.java b/source/net/yacy/upnp/messages/StateVariableMessage.javaindex 3f2829b9c..d77b18aeb 100644--- a/source/net/yacy/upnp/messages/StateVariableMessage.java+++ b/source/net/yacy/upnp/messages/StateVariableMessage.java@@ -188,7 +188,7 @@ public class StateVariableMessage {private String getResponseBody( InputStream in ) throws IOException {byte[] buffer = new byte[256];int readen = 0;- StringBuffer content = new StringBuffer( 256 );+ StringBuilder content = new StringBuilder( 256 );while ( ( readen = in.read( buffer ) ) != -1 ) {content.append( new String( buffer, 0 , readen ) );}diff --git a/source/net/yacy/upnp/messages/UPNPResponseException.java b/source/net/yacy/upnp/messages/UPNPResponseException.javaindex 8e1417b60..a8652a800 100644--- a/source/net/yacy/upnp/messages/UPNPResponseException.java+++ b/source/net/yacy/upnp/messages/UPNPResponseException.java@@ -86,10 +86,12 @@ public class UPNPResponseException extends Exception {return detailErrorDescription;}+ @Overridepublic String getMessage() {return "Detailed error code :" + detailErrorCode + ", Detailed error description :" + detailErrorDescription;}+ @Overridepublic String getLocalizedMessage() {return getMessage();}diff --git a/source/net/yacy/upnp/services/ISO8601Date.java b/source/net/yacy/upnp/services/ISO8601Date.javaindex cbc6ef307..c43f9bac2 100644--- a/source/net/yacy/upnp/services/ISO8601Date.java+++ b/source/net/yacy/upnp/services/ISO8601Date.java@@ -229,7 +229,7 @@ public class ISO8601Date {public static String getIsoDate(Date date) {Calendar calendar = new GregorianCalendar();calendar.setTime(date);- StringBuffer buffer = new StringBuffer();+ StringBuilder buffer = new StringBuilder();buffer.append(calendar.get(Calendar.YEAR));buffer.append("-");buffer.append(twoDigit(calendar.get(Calendar.MONTH) + 1));@@ -246,7 +246,7 @@ public class ISO8601Date {public static String getIsoDateTime(Date date) {Calendar calendar = new GregorianCalendar();calendar.setTime(date);- StringBuffer buffer = new StringBuffer();+ StringBuilder buffer = new StringBuilder();buffer.append(calendar.get(Calendar.YEAR));buffer.append("-");buffer.append(twoDigit(calendar.get(Calendar.MONTH) + 1));@@ -271,7 +271,7 @@ public class ISO8601Date {public static String getIsoDateTimeZone(Date date) {Calendar calendar = new GregorianCalendar(TimeZone.getTimeZone("UTC"));calendar.setTime(date);- StringBuffer buffer = new StringBuffer();+ StringBuilder buffer = new StringBuilder();buffer.append(calendar.get(Calendar.YEAR));buffer.append("-");buffer.append(twoDigit(calendar.get(Calendar.MONTH) + 1));@@ -297,7 +297,7 @@ public class ISO8601Date {public static String getIsoTime(Date date) {Calendar calendar = new GregorianCalendar();calendar.setTime(date);- StringBuffer buffer = new StringBuffer();+ StringBuilder buffer = new StringBuilder();buffer.append(twoDigit(calendar.get(Calendar.HOUR_OF_DAY)));buffer.append(":");buffer.append(twoDigit(calendar.get(Calendar.MINUTE)));@@ -316,7 +316,7 @@ public class ISO8601Date {public static String getIsoTimeZone(Date date) {Calendar calendar = new GregorianCalendar(TimeZone.getTimeZone("UTC"));calendar.setTime(date);- StringBuffer buffer = new StringBuffer();+ StringBuilder buffer = new StringBuilder();buffer.append(twoDigit(calendar.get(Calendar.HOUR_OF_DAY)));buffer.append(":");buffer.append(twoDigit(calendar.get(Calendar.MINUTE)));diff --git a/source/net/yacy/upnp/services/ServiceAction.java b/source/net/yacy/upnp/services/ServiceAction.javaindex 18e1e8765..bcd98071d 100644--- a/source/net/yacy/upnp/services/ServiceAction.java+++ b/source/net/yacy/upnp/services/ServiceAction.java@@ -183,7 +183,7 @@ public class ServiceAction {rtrVal.add( actArg );}}- if ( rtrVal.size() == 0 ) rtrVal = null;+ if ( rtrVal.isEmpty() ) rtrVal = null;return rtrVal;}@@ -196,7 +196,7 @@ public class ServiceAction {rtrVal.add( actArg.getName() );}}- if ( rtrVal.size() == 0 ) rtrVal = null;+ if ( rtrVal.isEmpty() ) rtrVal = null;return rtrVal;}}diff --git a/source/net/yacy/upnp/services/UPNPService.java b/source/net/yacy/upnp/services/UPNPService.javaindex efe8ec260..407b2d2c7 100644--- a/source/net/yacy/upnp/services/UPNPService.java+++ b/source/net/yacy/upnp/services/UPNPService.java@@ -317,7 +317,7 @@ public class UPNPService {java.io.InputStream in = SCPDURL.openConnection().getInputStream();int readen = 0;byte[] buff = new byte[512];- StringBuffer strBuff = new StringBuffer();+ StringBuilder strBuff = new StringBuilder();while( ( readen = in.read( buff ) ) != -1 ) {strBuff.append( new String( buff, 0, readen ) );}diff --git a/source/net/yacy/visualization/AnimationGIF.java b/source/net/yacy/visualization/AnimationGIF.javaindex 06f69b047..6d52596f8 100644--- a/source/net/yacy/visualization/AnimationGIF.java+++ b/source/net/yacy/visualization/AnimationGIF.java@@ -3,9 +3,9 @@* Copyright 2010 by Michael Christen* First released 20.11.2010 at http://yacy.net*- * $LastChangedDate: 2010-06-16 17:11:21 +0200 (Mi, 16 Jun 2010) $- * $LastChangedRevision: 6974 $- * $LastChangedBy: orbiter $+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Publicdiff --git a/source/net/yacy/visualization/Captcha.java b/source/net/yacy/visualization/Captcha.javaindex 27e87c38a..74ececf11 100644--- a/source/net/yacy/visualization/Captcha.java+++ b/source/net/yacy/visualization/Captcha.java@@ -3,9 +3,9 @@// part of YaCy// (C) by Marc Nause//-// $LastChangedDate: 2007-04-03 22:56:00 +0100 (Di, 04 Apr 2007) $-// $LastChangedRevision: 3542 $-// $LastChangedBy: low012 $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// This program is free software; you can redistribute it and/or modify// it under the terms of the GNU General Public License as published bydiff --git a/source/net/yacy/visualization/ChartPlotter.java b/source/net/yacy/visualization/ChartPlotter.javaindex 5f2ae1bf0..ca16bd367 100644--- a/source/net/yacy/visualization/ChartPlotter.java+++ b/source/net/yacy/visualization/ChartPlotter.java@@ -5,6 +5,10 @@// Frankfurt, Germany, 2005// created: 26.10.2005//+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$+//// This program is free software; you can redistribute it and/or modify// it under the terms of the GNU General Public License as published by// the Free Software Foundation; either version 2 of the License, ordiff --git a/source/net/yacy/visualization/CircleTool.java b/source/net/yacy/visualization/CircleTool.javaindex 01e707aeb..10fa5435c 100644--- a/source/net/yacy/visualization/CircleTool.java+++ b/source/net/yacy/visualization/CircleTool.java@@ -4,9 +4,9 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2006-04-02 22:40:07 +0200 (So, 02 Apr 2006) $-// $LastChangedRevision: 1986 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//diff --git a/source/net/yacy/visualization/FontGenerator5Pixel.java b/source/net/yacy/visualization/FontGenerator5Pixel.javaindex 982907dad..f4b552a6f 100644--- a/source/net/yacy/visualization/FontGenerator5Pixel.java+++ b/source/net/yacy/visualization/FontGenerator5Pixel.java@@ -5,6 +5,10 @@// Frankfurt, Germany, 2005// created: 31.10.2005//+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$+//// This program is free software; you can redistribute it and/or modify// it under the terms of the GNU General Public License as published by// the Free Software Foundation; either version 2 of the License, ordiff --git a/source/net/yacy/visualization/FontGenerator8Pixel.java b/source/net/yacy/visualization/FontGenerator8Pixel.javaindex 1c5d8cb85..30a570e66 100644--- a/source/net/yacy/visualization/FontGenerator8Pixel.java+++ b/source/net/yacy/visualization/FontGenerator8Pixel.java@@ -3,8 +3,12 @@// by Marc Nause// created: 05.04.2007//+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$+//// based on:-// ymageFontGenerator.java+// FontGenerator5Pixle.java// ---------------------------// (C) by Michael Peter Christen; [email protected]// first published on http://www.anomic.dediff --git a/source/net/yacy/visualization/GraphPlotter.java b/source/net/yacy/visualization/GraphPlotter.javaindex abe732947..0287d6250 100644--- a/source/net/yacy/visualization/GraphPlotter.java+++ b/source/net/yacy/visualization/GraphPlotter.java@@ -4,9 +4,9 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2006-04-02 22:40:07 +0200 (So, 02 Apr 2006) $-// $LastChangedRevision: 1986 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//diff --git a/source/net/yacy/visualization/HexGridPlotter.java b/source/net/yacy/visualization/HexGridPlotter.javaindex 440fed2e3..95cff525c 100644--- a/source/net/yacy/visualization/HexGridPlotter.java+++ b/source/net/yacy/visualization/HexGridPlotter.java@@ -3,9 +3,9 @@* Copyright 2011 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany* First released 18.02.2010 at http://yacy.net*- * $LastChangedDate: 2010-06-16 17:11:21 +0200 (Mi, 16 Jun 2010) $- * $LastChangedRevision: 6922 $- * $LastChangedBy: orbiter $+ * $LastChangedDate$+ * $LastChangedRevision$+ * $LastChangedBy$** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Publicdiff --git a/source/net/yacy/visualization/PrintTool.java b/source/net/yacy/visualization/PrintTool.javaindex b2f90e7b0..bae2f460c 100644--- a/source/net/yacy/visualization/PrintTool.java+++ b/source/net/yacy/visualization/PrintTool.java@@ -4,9 +4,9 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2006-04-02 22:40:07 +0200 (So, 02 Apr 2006) $-// $LastChangedRevision: 1986 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//diff --git a/source/net/yacy/visualization/RasterPlotter.java b/source/net/yacy/visualization/RasterPlotter.javaindex 4f7c752c1..3c904a021 100644--- a/source/net/yacy/visualization/RasterPlotter.java+++ b/source/net/yacy/visualization/RasterPlotter.java@@ -4,9 +4,9 @@//// This is a part of YaCy, a peer-to-peer based web search engine//-// $LastChangedDate: 2006-04-02 22:40:07 +0200 (So, 02 Apr 2006) $-// $LastChangedRevision: 1986 $-// $LastChangedBy: orbiter $+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// LICENSE//diff --git a/source/org/apache/tools/tar/TarEntry.java b/source/org/apache/tools/tar/TarEntry.javaindex 42fcb9f43..20c781a02 100644--- a/source/org/apache/tools/tar/TarEntry.java+++ b/source/org/apache/tools/tar/TarEntry.java@@ -282,6 +282,7 @@ public class TarEntry implements TarConstants {* @param it Entry to be checked for equality.* @return True if the entries are equal.*/+ @Overridepublic boolean equals(final Object obj) {if (this == obj) return true;if (obj == null) return false;@@ -295,6 +296,7 @@ public class TarEntry implements TarConstants {** @return the entry hashcode*/+ @Overridepublic int hashCode() {return getName().hashCode();}diff --git a/source/org/apache/tools/tar/TarInputStream.java b/source/org/apache/tools/tar/TarInputStream.javaindex 7be17cefd..74fe5e88b 100644--- a/source/org/apache/tools/tar/TarInputStream.java+++ b/source/org/apache/tools/tar/TarInputStream.java@@ -110,6 +110,7 @@ public class TarInputStream extends FilterInputStream {* Closes this stream. Calls the TarBuffer's close() method.* @throws IOException on error*/+ @Overridepublic void close() throws IOException {this.buffer.close();}@@ -135,6 +136,7 @@ public class TarInputStream extends FilterInputStream {* @return The number of available bytes for the current entry.* @throws IOException for signature*/+ @Overridepublic int available() throws IOException {if (this.entrySize - this.entryOffset > Integer.MAX_VALUE) {return Integer.MAX_VALUE;@@ -152,6 +154,7 @@ public class TarInputStream extends FilterInputStream {* @return the number actually skipped* @throws IOException on error*/+ @Overridepublic long skip(long numToSkip) throws IOException {// REVIEW// This is horribly inefficient, but it ensures that we@@ -175,6 +178,7 @@ public class TarInputStream extends FilterInputStream {** @return False.*/+ @Overridepublic boolean markSupported() {return false;}@@ -184,12 +188,14 @@ public class TarInputStream extends FilterInputStream {** @param markLimit The limit to mark.*/+ @Overridepublic synchronized void mark(int markLimit) {}/*** Since we do not support marking just yet, we do nothing.*/+ @Overridepublic synchronized void reset() {}@@ -293,6 +299,7 @@ public class TarInputStream extends FilterInputStream {* @return The byte read, or -1 at EOF.* @throws IOException on error*/+ @Overridepublic int read() throws IOException {int num = this.read(this.oneBuf, 0, 1);return num == -1 ? -1 : ((int) this.oneBuf[0]) & BYTE_MASK;@@ -311,6 +318,7 @@ public class TarInputStream extends FilterInputStream {* @return The number of bytes read, or -1 at EOF.* @throws IOException on error*/+ @Overridepublic int read(byte[] buf, int offset, int numToRead) throws IOException {int totalRead = 0;diff --git a/source/org/apache/tools/tar/TarOutputStream.java b/source/org/apache/tools/tar/TarOutputStream.javaindex 852bee2a8..75f9c53d3 100644--- a/source/org/apache/tools/tar/TarOutputStream.java+++ b/source/org/apache/tools/tar/TarOutputStream.java@@ -140,6 +140,7 @@ public class TarOutputStream extends FilterOutputStream {* TarBuffer's close().* @throws IOException on error*/+ @Overridepublic void close() throws IOException {if (!closed) {this.finish();@@ -242,6 +243,7 @@ public class TarOutputStream extends FilterOutputStream {* @param b The byte written.* @throws IOException on error*/+ @Overridepublic void write(int b) throws IOException {this.oneBuf[0] = (byte) b;@@ -256,6 +258,7 @@ public class TarOutputStream extends FilterOutputStream {* @param wBuf The buffer to write to the archive.* @throws IOException on error*/+ @Overridepublic void write(byte[] wBuf) throws IOException {this.write(wBuf, 0, wBuf.length);}@@ -274,6 +277,7 @@ public class TarOutputStream extends FilterOutputStream {* @param numToWrite The number of bytes to write.* @throws IOException on error*/+ @Overridepublic void write(byte[] wBuf, int wOffset, int numToWrite) throws IOException {if ((this.currBytes + numToWrite) > this.currSize) {throw new IOException("request to write '" + numToWrite