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
@@ -57,7 +57,7 @@ public class PartP2PItems extends PartP2PTunnel<PartP2PItems> implements IPipeCo
boolean requested;
IInventory cachedInv;
LinkedList<IInventory> which = new LinkedList<IInventory>();
final LinkedList<IInventory> which = new LinkedList<IInventory>();
IInventory getOutputInv()
{
@@ -37,7 +37,7 @@ public class PartP2PTunnel<T extends PartP2PTunnel> extends PartBasicState
public boolean output;
public long freq;
TunnelCollection type = new TunnelCollection<T>( null, getClass() );
final TunnelCollection type = new TunnelCollection<T>( null, getClass() );
public PartP2PTunnel(ItemStack is) {
super( PartP2PTunnel.class, is );
@@ -36,8 +36,8 @@ public class PartP2PTunnelME extends PartP2PTunnel<PartP2PTunnelME> implements I
return TunnelType.ME;
}
AENetworkProxy outerProxy = new AENetworkProxy( this, "outer", null, true );
public Connections connection = new Connections( this );
final AENetworkProxy outerProxy = new AENetworkProxy( this, "outer", null, true );
public final Connections connection = new Connections( this );
public PartP2PTunnelME(ItemStack is) {
super( is );