JOSM r16321 removed `Territories.getDataSet`

Switch to `Territories.getOriginalDataSet`

Signed-off-by: Taylor Smock <taylor.smock@kaart.com>
pull/1/head
Taylor Smock 2020-04-20 11:17:31 -06:00
rodzic 3cf03a2366
commit 69f4252085
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 625F6A74A3E4311A
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -92,7 +92,7 @@ public final class MapWithAIAvailability extends DataAvailability {
private static Map<String, Map<String, Boolean>> parseForCountries(JsonArray countries) { private static Map<String, Map<String, Boolean>> parseForCountries(JsonArray countries) {
final Map<String, Map<String, Boolean>> returnCountries = new TreeMap<>(); final Map<String, Map<String, Boolean>> returnCountries = new TreeMap<>();
Territories.initialize(); Territories.initialize();
final DataSet territories = Territories.getDataSet(); final DataSet territories = Territories.getOriginalDataSet();
for (int i = 0; i < countries.size(); i++) { for (int i = 0; i < countries.size(); i++) {
final JsonObject country = countries.getJsonObject(i).getJsonObject("properties"); final JsonObject country = countries.getJsonObject(i).getJsonObject("properties");
for (String countryName : cornerCaseNames(country.getString("Country"))) { for (String countryName : cornerCaseNames(country.getString("Country"))) {