Make fields final if possible to ensure immutability
This commit is contained in:
@@ -8,9 +8,9 @@ public class InternalSlotME
|
||||
|
||||
private final ItemRepo repo;
|
||||
|
||||
public int offset;
|
||||
public int xPos;
|
||||
public int yPos;
|
||||
public final int offset;
|
||||
public final int xPos;
|
||||
public final int yPos;
|
||||
|
||||
public InternalSlotME(ItemRepo def, int offset, int displayX, int displayY) {
|
||||
this.repo = def;
|
||||
|
||||
@@ -10,7 +10,7 @@ import appeng.util.Platform;
|
||||
public class SlotDisconnected extends AppEngSlot
|
||||
{
|
||||
|
||||
public ClientDCInternalInv mySlot;
|
||||
public final ClientDCInternalInv mySlot;
|
||||
|
||||
public SlotDisconnected(ClientDCInternalInv me, int which, int x, int y) {
|
||||
super( me.inv, which, x, y );
|
||||
|
||||
@@ -9,7 +9,7 @@ import appeng.api.storage.data.IAEItemStack;
|
||||
public class SlotME extends Slot
|
||||
{
|
||||
|
||||
public InternalSlotME mySlot;
|
||||
public final InternalSlotME mySlot;
|
||||
|
||||
public SlotME(InternalSlotME me) {
|
||||
super( null, 0, me.xPos, me.yPos );
|
||||
|
||||
Reference in New Issue
Block a user