IntelliJ Inspection Based Cleanup

This commit is contained in:
Olof Larsson
2017-03-24 14:03:29 +01:00
parent 60b4472735
commit bdbc1c79a2
53 changed files with 154 additions and 153 deletions

View File

@@ -62,7 +62,7 @@ public class EventFactionsChunksChange extends EventFactionsAbstractSender
MPlayer msender = this.getMPlayer();
Faction self = null;
if (msender != null) self = msender.getFaction();
Map<PS, EventFactionsChunkChangeType> currentChunkType = new LinkedHashMap<PS, EventFactionsChunkChangeType>();
Map<PS, EventFactionsChunkChangeType> currentChunkType = new LinkedHashMap<>();
for (Entry<PS, Faction> entry : this.oldChunkFaction.entrySet())
{
PS chunk = entry.getKey();

View File

@@ -21,7 +21,7 @@ public class EventFactionsExpansions extends EventFactionsAbstractSender
// FIELDS
// -------------------------------------------- //
private final MassiveTreeMap<String, Boolean, ComparatorCaseInsensitive> expansions = new MassiveTreeMap<String, Boolean, ComparatorCaseInsensitive>(ComparatorCaseInsensitive.get());
private final MassiveTreeMap<String, Boolean, ComparatorCaseInsensitive> expansions = new MassiveTreeMap<>(ComparatorCaseInsensitive.get());
public Map<String, Boolean> getExpansions() { return this.expansions; }
// -------------------------------------------- //

View File

@@ -36,7 +36,7 @@ public class EventFactionsFactionShowAsync extends EventFactionsAbstractSender
{
super(true, sender);
this.faction = faction;
this.idPriorityLiness = new HashMap<String, PriorityLines>();
this.idPriorityLiness = new HashMap<>();
}
}

View File

@@ -72,7 +72,7 @@ public class EventFactionsMembershipChange extends EventFactionsAbstractSender
private final boolean cancellable;
public boolean isCancellable() { return this.cancellable; }
private MembershipChangeReason(boolean cancellable)
MembershipChangeReason(boolean cancellable)
{
this.cancellable = cancellable;
}

View File

@@ -31,7 +31,7 @@ public class EventFactionsRemovePlayerMillis extends EventMassiveCore
public long getMillis() { return this.millis; }
public void setMillis(long millis) { this.millis = millis; }
private Map<String, Long> causeMillis = new LinkedHashMap<String, Long>();
private Map<String, Long> causeMillis = new LinkedHashMap<>();
public Map<String, Long> getCauseMillis() { return this.causeMillis; }
// -------------------------------------------- //