Cleaned up a lot of different inspections
This commit is contained in:
parent
0dd0854bd9
commit
70d98455b7
207 changed files with 603 additions and 731 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue