Java 7 and make intellij happy

This commit is contained in:
Trent Hensler
2017-12-19 02:18:13 -08:00
parent ce132ed033
commit 3b644cd6c3
53 changed files with 222 additions and 285 deletions

View File

@@ -207,7 +207,7 @@ public class Econ {
}
public static Set<FPlayer> getFplayers(EconomyParticipator ep) {
Set<FPlayer> fplayers = new HashSet<FPlayer>();
Set<FPlayer> fplayers = new HashSet<>();
if (ep != null) {
if (ep instanceof FPlayer) {
@@ -221,7 +221,7 @@ public class Econ {
}
public static void sendTransferInfo(EconomyParticipator invoker, EconomyParticipator from, EconomyParticipator to, double amount) {
Set<FPlayer> recipients = new HashSet<FPlayer>();
Set<FPlayer> recipients = new HashSet<>();
recipients.addAll(getFplayers(invoker));
recipients.addAll(getFplayers(from));
recipients.addAll(getFplayers(to));