Make fields final if possible to ensure immutability
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user