Make fields final if possible to ensure immutability
This commit is contained in:
@@ -49,7 +49,7 @@ import com.google.common.collect.ImmutableSet;
|
||||
public class ItemMultiMaterial extends AEBaseItem implements IStorageComponent, IUpgradeModule
|
||||
{
|
||||
|
||||
HashMap<Integer, MaterialType> dmgToMaterial = new HashMap<Integer, MaterialType>();
|
||||
final HashMap<Integer, MaterialType> dmgToMaterial = new HashMap<Integer, MaterialType>();
|
||||
|
||||
public static ItemMultiMaterial instance;
|
||||
|
||||
@@ -63,7 +63,7 @@ public class ItemMultiMaterial extends AEBaseItem implements IStorageComponent,
|
||||
class SlightlyBetterSort implements Comparator<String>
|
||||
{
|
||||
|
||||
Pattern p;
|
||||
final Pattern p;
|
||||
|
||||
public SlightlyBetterSort(Pattern p) {
|
||||
this.p = p;
|
||||
|
||||
Reference in New Issue
Block a user