Make fields final if possible to ensure immutability

This commit is contained in:
thatsIch
2014-09-29 09:54:34 +02:00
parent 35f6c84d9f
commit 474596f095
261 changed files with 607 additions and 597 deletions
@@ -56,7 +56,7 @@ public class PartInterface extends PartBasicState implements IGridTickable, ISeg
ISidedInventory, IAEAppEngInventory, ITileStorageMonitorable, IPriorityHost
{
DualityInterface duality = new DualityInterface( proxy, this );
final DualityInterface duality = new DualityInterface( proxy, this );
public PartInterface(ItemStack is) {
super( PartInterface.class, is );
@@ -71,9 +71,9 @@ public class PartStorageBus extends PartUpgradeable implements IGridTickable, IC
{
int priority = 0;
BaseActionSource mySrc;
final BaseActionSource mySrc;
AppEngInternalAEInventory Config = new AppEngInternalAEInventory( this, 63 );
final AppEngInternalAEInventory Config = new AppEngInternalAEInventory( this, 63 );
public PartStorageBus(ItemStack is)
{
@@ -32,7 +32,7 @@ import cpw.mods.fml.relauncher.SideOnly;
public class PartToggleBus extends PartBasicState
{
AENetworkProxy outerProxy = new AENetworkProxy( this, "outer", null, true );
final AENetworkProxy outerProxy = new AENetworkProxy( this, "outer", null, true );
IGridConnection connection;
protected final int REDSTONE_FLAG = 4;