refactor: we don't need explicit types here

This commit is contained in:
Breno A.
2024-06-09 09:17:05 -03:00
Unverified
parent fcd409320d
commit b5d0afd0fe
14 changed files with 38 additions and 38 deletions
@@ -49,7 +49,7 @@ public class HandlerBuyGoodsReq extends PacketHandler {
}
List<ItemParamData> costs =
new ArrayList<ItemParamData>(sg.getCostItemList()); // Can this even be null?
new ArrayList<>(sg.getCostItemList()); // Can this even be null?
costs.add(new ItemParamData(202, sg.getScoin()));
costs.add(new ItemParamData(201, sg.getHcoin()));
costs.add(new ItemParamData(203, sg.getMcoin()));
@@ -15,11 +15,11 @@ public class PacketMailChangeNotify extends BasePacket {
public PacketMailChangeNotify(Player player, Mail message) {
this(
player,
new ArrayList<Mail>() {
{
add(message);
}
});
new ArrayList<>() {
{
add(message);
}
});
}
public PacketMailChangeNotify(Player player, List<Mail> mailList) {