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
@@ -32,8 +32,8 @@ import appeng.tile.networking.TileWireless;
public class WirelessTerminalGuiObject implements IPortableCell, IActionHost
{
IWirelessTermHandler wth;
String encryptionKey;
final IWirelessTermHandler wth;
final String encryptionKey;
IGrid targetGrid;
IStorageGrid sg;
@@ -43,8 +43,8 @@ public class WirelessTerminalGuiObject implements IPortableCell, IActionHost
double sqRange = Double.MAX_VALUE;
double myRange = Double.MAX_VALUE;
EntityPlayer myPlayer;
public ItemStack effectiveItem;
final EntityPlayer myPlayer;
public final ItemStack effectiveItem;
public double getRange()
{