Cleaned up a lot of different inspections

This commit is contained in:
Nicholas Ignoffo 2018-03-01 19:27:38 -08:00
parent 0dd0854bd9
commit 70d98455b7
207 changed files with 603 additions and 731 deletions

View file

@ -17,13 +17,13 @@ public class LocationsHandler implements Serializable {
private static LocationsHandler locationsHandler;
private LocationsHandler() {
portals = new HashMap<String, ArrayList<PortalLocation>>();
portals = new HashMap<>();
}
public boolean addLocation(String name, PortalLocation location) {
ArrayList<PortalLocation> portalLocations = portals.get(name);
if (portalLocations == null) {
portals.put(name, new ArrayList<PortalLocation>());
portals.put(name, new ArrayList<>());
updateFile(fileName, portals);
}
if (!portals.get(name).isEmpty() && portals.get(name).size() >= 2) {