Update MapWithAIInfo when preferences are null

Signed-off-by: Taylor Smock <taylor.smock@kaart.com>
pull/1/head
Taylor Smock 2020-06-18 15:56:25 -06:00
rodzic 41061b0e98
commit a338a96f1d
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 625F6A74A3E4311A
2 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -270,7 +270,9 @@ public class MapWithAIInfo extends
&& Objects.equals(this.conflationUrl, other.conflationUrl)
&& Objects.equals(this.conflationParameters, other.conflationParameters)
&& Objects.equals(this.categories, other.categories)
&& Objects.equals(this.alreadyConflatedKey, other.alreadyConflatedKey);
&& Objects.equals(this.alreadyConflatedKey, other.alreadyConflatedKey)
&& ((this.parameters == null && other.parameters == null)
|| Objects.equals(this.parameters, other.parameters));
// CHECKSTYLE.ON: BooleanExpressionComplexity
}

Wyświetl plik

@ -444,9 +444,7 @@ public class MapWithAILayerInfo {
}
public static void addLayers(Collection<MapWithAIInfo> infos) {
for (MapWithAIInfo i : infos) {
instance.add(i);
}
infos.forEach(instance::add);
instance.save();
Collections.sort(instance.layers);
}