cleanup: use implicit generic type with diamond operator

This commit is contained in:
P0nk
2021-04-08 07:42:10 +02:00
parent 8aa44711e3
commit 5730b3b42d
35 changed files with 108 additions and 121 deletions

View File

@@ -43,7 +43,7 @@ public class MapleCoconut extends MapleEvent {
private int countBombing = 80;
private int countFalling = 401;
private int countStopped = 20;
private List<MapleCoconuts> coconuts = new LinkedList<MapleCoconuts>();
private List<MapleCoconuts> coconuts = new LinkedList<>();
public MapleCoconut(MapleMap map) {
super(1, 50);

View File

@@ -41,7 +41,7 @@ public class MapleSnowball {
private boolean hittable = false;
private int team;
private boolean winner = false;
List<MapleCharacter> characters = new LinkedList<MapleCharacter>();
List<MapleCharacter> characters = new LinkedList<>();
public MapleSnowball(int team, MapleMap map) {
this.map = map;