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
@@ -24,9 +24,9 @@ public class CraftingTreeProcess
{
World world;
CraftingTreeNode parent;
ICraftingPatternDetails details;
CraftingJob job;
final CraftingTreeNode parent;
final ICraftingPatternDetails details;
final CraftingJob job;
long crafts = 0;
boolean containerItems;
@@ -36,7 +36,7 @@ public class CraftingTreeProcess
private long bytes = 0;
final private int depth;
Map<CraftingTreeNode, Long> nodes = new HashMap<CraftingTreeNode, Long>();
final Map<CraftingTreeNode, Long> nodes = new HashMap<CraftingTreeNode, Long>();
public boolean possible = true;
public CraftingTreeProcess(ICraftingGrid cc, CraftingJob job, ICraftingPatternDetails details, CraftingTreeNode craftingTreeNode, int depth, World world) {