Changeset 32718 in osm for applications/editors/josm
- Timestamp:
- 2016-07-26T17:19:55+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/wikipedia/src/org/wikipedia/WikipediaApp.java
r32704 r32718 196 196 .flatMap(chunk -> getWikidataForArticles(wikipediaLang, chunk).entrySet().stream()) 197 197 .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue)); 198 } else if (articles.isEmpty()) { 199 return Collections.emptyMap(); 198 200 } 199 201 try { … … 256 258 .flatMap(chunk -> getLabelForWikidata(chunk, locale, preferredLanguage).stream()) 257 259 .collect(Collectors.toList()); 260 } else if (entries.isEmpty()) { 261 return Collections.emptyList(); 258 262 } 259 263 try {
Note:
See TracChangeset
for help on using the changeset viewer.