mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-27 15:33:12 +00:00
Use diamond operator everywhere
This commit is contained in:
1 parent
9812ddc4ce
commit
55c58cf5d9
140 files changed
+305
-305
No files matched your search
@@ -13,8 +13,8 @@ public class ManagerConfig extends ManagerBase {
|
||||
private Map<AbstractMod, List<BinnieItemData>> itemIDs;
|
||||
|
||||
public ManagerConfig() {
|
||||
this.configurations = new LinkedHashMap<Class<?>, Configuration>();
|
||||
this.itemIDs = new HashMap<AbstractMod, List<BinnieItemData>>();
|
||||
this.configurations = new LinkedHashMap<>();
|
||||
this.itemIDs = new HashMap<>();
|
||||
}
|
||||
|
||||
public void registerConfiguration(final Class<?> cls, final AbstractMod mod) {
|
||||
@@ -48,7 +48,7 @@ public class ManagerConfig extends ManagerBase {
|
||||
|
||||
public void addItemID(final Integer configValue, final String configKey, final BinnieConfiguration configFile) {
|
||||
if (!this.itemIDs.containsKey(configFile.mod)) {
|
||||
this.itemIDs.put(configFile.mod, new ArrayList<BinnieItemData>());
|
||||
this.itemIDs.put(configFile.mod, new ArrayList<>());
|
||||
}
|
||||
this.itemIDs.get(configFile.mod).add(new BinnieItemData(configValue + 256, configFile, configKey));
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ abstract class PropertyBase<ValueType, AnnotationType extends Annotation> {
|
||||
private Field field;
|
||||
|
||||
protected PropertyBase(final Field field, final BinnieConfiguration file, final ConfigProperty configProperty, final AnnotationType annotedProperty) throws IllegalArgumentException, IllegalAccessException {
|
||||
this.comments = new ArrayList<String>();
|
||||
this.comments = new ArrayList<>();
|
||||
this.field = field;
|
||||
this.file = file;
|
||||
this.configProperty = configProperty;
|
||||
|
||||
@@ -45,6 +45,6 @@ public abstract class FieldParser {
|
||||
}
|
||||
|
||||
static {
|
||||
FieldParser.parsers = new ArrayList<FieldParser>();
|
||||
FieldParser.parsers = new ArrayList<>();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user