mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-18 11:29:23 +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
@@ -136,7 +136,7 @@ public class ControlSlot extends ControlSlotBase {
|
||||
}
|
||||
|
||||
private List<ControlSlot> getControlSlots() {
|
||||
final List<ControlSlot> slots = new ArrayList<ControlSlot>();
|
||||
final List<ControlSlot> slots = new ArrayList<>();
|
||||
if (this.getParent() instanceof ControlSlotArray || this.getParent() instanceof ControlPlayerInventory) {
|
||||
for (final IWidget child : this.getParent().getWidgets()) {
|
||||
slots.add((ControlSlot) child);
|
||||
@@ -194,10 +194,10 @@ public class ControlSlot extends ControlSlotBase {
|
||||
}
|
||||
|
||||
static {
|
||||
ControlSlot.highlighting = new HashMap<EnumHighlighting, List<Integer>>();
|
||||
ControlSlot.highlighting = new HashMap<>();
|
||||
ControlSlot.shiftClickActive = false;
|
||||
for (final EnumHighlighting h : EnumHighlighting.values()) {
|
||||
ControlSlot.highlighting.put(h, new ArrayList<Integer>());
|
||||
ControlSlot.highlighting.put(h, new ArrayList<>());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user