Make fields final if possible to ensure immutability
This commit is contained in:
@@ -46,7 +46,7 @@ import cpw.mods.fml.relauncher.SideOnly;
|
||||
public class PartCable extends AEBasePart implements IPartCable
|
||||
{
|
||||
|
||||
int channelsOnSide[] = new int[] { 0, 0, 0, 0, 0, 0 };
|
||||
final int[] channelsOnSide = new int[] { 0, 0, 0, 0, 0, 0 };
|
||||
|
||||
EnumSet<ForgeDirection> connections = EnumSet.noneOf( ForgeDirection.class );
|
||||
boolean powered = false;
|
||||
|
||||
@@ -31,7 +31,7 @@ import cpw.mods.fml.relauncher.SideOnly;
|
||||
public class PartQuartzFiber extends AEBasePart implements IEnergyGridProvider
|
||||
{
|
||||
|
||||
AENetworkProxy outerProxy = new AENetworkProxy( this, "outer", proxy.getMachineRepresentation(), true );
|
||||
final AENetworkProxy outerProxy = new AENetworkProxy( this, "outer", proxy.getMachineRepresentation(), true );
|
||||
|
||||
public PartQuartzFiber(ItemStack is) {
|
||||
super( PartQuartzFiber.class, is );
|
||||
|
||||
Reference in New Issue
Block a user