kopia lustrzana https://github.com/JOSM/MapWithAI
Update MapWithAIInfo when preferences are null
Signed-off-by: Taylor Smock <taylor.smock@kaart.com>pull/1/head
rodzic
41061b0e98
commit
a338a96f1d
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue