forked from LogBlock/LogBlock
Made some more fields final.
This commit is contained in:
@@ -23,11 +23,11 @@ public class Consumer extends TimerTask implements Runnable
|
||||
private final LogBlock logblock;
|
||||
private final Logger log;
|
||||
private final Config config;
|
||||
private LinkedBlockingQueue<BlockRow> bqueue = new LinkedBlockingQueue<BlockRow>();
|
||||
private LinkedBlockingQueue<KillRow> kqueue = new LinkedBlockingQueue<KillRow>();
|
||||
private HashSet<Integer> hiddenplayers = new HashSet<Integer>();
|
||||
private HashMap<Integer, Integer> lastAttackedEntity = new HashMap<Integer, Integer>();
|
||||
private HashMap<Integer, Long> lastAttackTime = new HashMap<Integer, Long>();
|
||||
private final LinkedBlockingQueue<BlockRow> bqueue = new LinkedBlockingQueue<BlockRow>();
|
||||
private final LinkedBlockingQueue<KillRow> kqueue = new LinkedBlockingQueue<KillRow>();
|
||||
private final HashSet<Integer> hiddenplayers = new HashSet<Integer>();
|
||||
private final HashMap<Integer, Integer> lastAttackedEntity = new HashMap<Integer, Integer>();
|
||||
private final HashMap<Integer, Long> lastAttackTime = new HashMap<Integer, Long>();
|
||||
|
||||
|
||||
Consumer (LogBlock logblock) {
|
||||
|
@@ -112,8 +112,8 @@ public class Rollback implements Runnable
|
||||
|
||||
private class PerformRollback implements Runnable
|
||||
{
|
||||
private LinkedBlockingQueue<Edit> edits;
|
||||
private Rollback rollback;
|
||||
private final LinkedBlockingQueue<Edit> edits;
|
||||
private final Rollback rollback;
|
||||
int successes = 0;
|
||||
int errors = 0;
|
||||
int blacklisteds = 0;
|
||||
@@ -148,17 +148,17 @@ public class Rollback implements Runnable
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private enum PerformResult {
|
||||
ERROR, SUCCESS, BLACKLISTED, NO_ACTION
|
||||
}
|
||||
|
||||
private class Edit
|
||||
{
|
||||
int type, replaced;
|
||||
int x, y, z;
|
||||
byte data;
|
||||
World world;
|
||||
final int type, replaced;
|
||||
final int x, y, z;
|
||||
final byte data;
|
||||
final World world;
|
||||
|
||||
Edit(int type, int replaced, byte data, int x, int y, int z, World world) {
|
||||
this.type = type;
|
||||
|
Reference in New Issue
Block a user