Make fields final if possible to ensure immutability
This commit is contained in:
@@ -14,8 +14,8 @@ import appeng.util.item.AEItemStack;
|
||||
public class BSCrate implements IMEInventory<IAEItemStack>
|
||||
{
|
||||
|
||||
ICrateStorage cs;
|
||||
ForgeDirection side;
|
||||
final ICrateStorage cs;
|
||||
final ForgeDirection side;
|
||||
|
||||
public BSCrate(Object object, ForgeDirection d) {
|
||||
cs = (ICrateStorage) object;
|
||||
|
||||
@@ -15,8 +15,8 @@ import appeng.util.iterators.StackToSlotIterator;
|
||||
public class BSCrateStorageAdaptor extends InventoryAdaptor
|
||||
{
|
||||
|
||||
ICrateStorage cs;
|
||||
ForgeDirection side;
|
||||
final ICrateStorage cs;
|
||||
final ForgeDirection side;
|
||||
|
||||
public BSCrateStorageAdaptor(Object te, ForgeDirection d) {
|
||||
cs = (ICrateStorage) te;
|
||||
|
||||
@@ -15,7 +15,7 @@ public class FactorizationBarrel implements IMEInventory<IAEItemStack>
|
||||
{
|
||||
|
||||
private final TileEntity te;
|
||||
IFZ fProxy;
|
||||
final IFZ fProxy;
|
||||
|
||||
public FactorizationBarrel(IFZ proxy, TileEntity tile) {
|
||||
te = tile;
|
||||
|
||||
+2
-2
@@ -14,8 +14,8 @@ import appeng.util.item.AEItemStack;
|
||||
public class MinefactoryReloadedDeepStorageUnit implements IMEInventory<IAEItemStack>
|
||||
{
|
||||
|
||||
IDeepStorageUnit dsu;
|
||||
TileEntity te;
|
||||
final IDeepStorageUnit dsu;
|
||||
final TileEntity te;
|
||||
|
||||
public MinefactoryReloadedDeepStorageUnit(TileEntity ta) {
|
||||
te = ta;
|
||||
|
||||
Reference in New Issue
Block a user