Make fields final if possible to ensure immutability
This commit is contained in:
@@ -7,7 +7,7 @@ public class CraftBranchFailure extends Exception
|
||||
|
||||
private static final long serialVersionUID = 654603652836724823L;
|
||||
|
||||
IAEItemStack missing;
|
||||
final IAEItemStack missing;
|
||||
|
||||
public CraftBranchFailure(IAEItemStack what, long howMany) {
|
||||
super( "Failed: " + what.getItem().getUnlocalizedName() + " x " + howMany );
|
||||
|
||||
Reference in New Issue
Block a user