kopia lustrzana https://github.com/JOSM/MapWithAI
JOSM r16321 removed `Territories.getDataSet`
Switch to `Territories.getOriginalDataSet` Signed-off-by: Taylor Smock <taylor.smock@kaart.com>pull/1/head
rodzic
3cf03a2366
commit
69f4252085
|
@ -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"))) {
|
||||||
|
|
Ładowanie…
Reference in New Issue