*) Setting some object fields to final

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@796 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
theli 20 years ago
parent 5f95a1cf62
commit b5a8992d29

@ -44,19 +44,16 @@ package de.anomic.plasma;
import java.io.File; import java.io.File;
import java.io.IOException; import java.io.IOException;
import java.util.Enumeration;
import java.util.Iterator; import java.util.Iterator;
import java.util.Map; import java.util.Map;
import java.util.TreeMap; import java.util.TreeMap;
import java.util.TreeSet;
import java.util.Enumeration;
import de.anomic.kelondro.kelondroArray;
import de.anomic.kelondro.kelondroException; import de.anomic.kelondro.kelondroException;
import de.anomic.kelondro.kelondroMScoreCluster; import de.anomic.kelondro.kelondroMScoreCluster;
import de.anomic.kelondro.kelondroMergeIterator; import de.anomic.kelondro.kelondroMergeIterator;
import de.anomic.kelondro.kelondroRecords; import de.anomic.kelondro.kelondroRecords;
import de.anomic.kelondro.kelondroStack;
import de.anomic.kelondro.kelondroArray;
import de.anomic.kelondro.kelondroTree;
import de.anomic.server.logging.serverLog; import de.anomic.server.logging.serverLog;
import de.anomic.yacy.yacySeedDB; import de.anomic.yacy.yacySeedDB;
@ -72,17 +69,17 @@ public final class plasmaWordIndexCache implements plasmaWordIndexInterface {
// class variables // class variables
private File databaseRoot; private final File databaseRoot;
private plasmaWordIndexInterface backend; private final plasmaWordIndexInterface backend;
private TreeMap cache; private final TreeMap cache;
private kelondroMScoreCluster hashScore; private final kelondroMScoreCluster hashScore;
private kelondroMScoreCluster hashDate; private final kelondroMScoreCluster hashDate;
private long startTime; private long startTime;
private int maxWords; private int maxWords;
private serverLog log; private final serverLog log;
private plasmaWordIndexAssortmentCluster assortmentCluster; private final plasmaWordIndexAssortmentCluster assortmentCluster;
private int assortmentBufferSize; //kb private int assortmentBufferSize; //kb
private flush flushThread; private final flush flushThread;
// calculated constants // calculated constants
private static String minKey, maxKey; private static String minKey, maxKey;
@ -292,7 +289,7 @@ public final class plasmaWordIndexCache implements plasmaWordIndexInterface {
true); true);
} }
private class flush extends Thread { private final class flush extends Thread {
boolean terminate, pause; boolean terminate, pause;
long intermission; long intermission;

Loading…
Cancel
Save