From 69f4252085d3da7361236968ecc4399ef827fb0e Mon Sep 17 00:00:00 2001 From: Taylor Smock Date: Mon, 20 Apr 2020 11:17:31 -0600 Subject: [PATCH] JOSM r16321 removed `Territories.getDataSet` Switch to `Territories.getOriginalDataSet` Signed-off-by: Taylor Smock --- .../josm/plugins/mapwithai/backend/MapWithAIAvailability.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/openstreetmap/josm/plugins/mapwithai/backend/MapWithAIAvailability.java b/src/main/java/org/openstreetmap/josm/plugins/mapwithai/backend/MapWithAIAvailability.java index cf0c8d0..16edded 100644 --- a/src/main/java/org/openstreetmap/josm/plugins/mapwithai/backend/MapWithAIAvailability.java +++ b/src/main/java/org/openstreetmap/josm/plugins/mapwithai/backend/MapWithAIAvailability.java @@ -92,7 +92,7 @@ public final class MapWithAIAvailability extends DataAvailability { private static Map> parseForCountries(JsonArray countries) { final Map> returnCountries = new TreeMap<>(); Territories.initialize(); - final DataSet territories = Territories.getDataSet(); + final DataSet territories = Territories.getOriginalDataSet(); for (int i = 0; i < countries.size(); i++) { final JsonObject country = countries.getJsonObject(i).getJsonObject("properties"); for (String countryName : cornerCaseNames(country.getString("Country"))) {