Make fields final if possible to ensure immutability
This commit is contained in:
@@ -234,8 +234,8 @@ public class CompassService implements ThreadFactory
|
||||
return executor.submit( new CMUpdatePost( w, cx, cz, cdy, false ) );
|
||||
}
|
||||
|
||||
HashMap<World, CompassReader> worldSet = new HashMap<World, CompassReader>();
|
||||
ExecutorService executor;
|
||||
final HashMap<World, CompassReader> worldSet = new HashMap<World, CompassReader>();
|
||||
final ExecutorService executor;
|
||||
|
||||
final File rootFolder;
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import net.minecraft.world.World;
|
||||
public class CompassReader
|
||||
{
|
||||
|
||||
HashMap<Long, CompassRegion> regions = new HashMap<Long, CompassRegion>();
|
||||
final HashMap<Long, CompassRegion> regions = new HashMap<Long, CompassRegion>();
|
||||
final int id;
|
||||
final File rootFolder;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user