Commit 0f871c32 authored by Vincent Privat's avatar Vincent Privat

see #josm16204 #comment:10 - Don't use ForkJoinPool#commonPool(), does not work with WebStart

git-svn-id: https://svn.openstreetmap.org/applications/editors/josm/plugins/wikipedia@34159 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
parent d896e29e
......@@ -56,7 +56,9 @@ public class WikidataTagCellRenderer extends DefaultTableCellRenderer {
ids.forEach(id ->
labelCache.computeIfAbsent(id, x ->
CompletableFuture.supplyAsync(() -> WikipediaApp.getLabelForWikidata(x, Locale.getDefault())))
CompletableFuture.supplyAsync(() -> WikipediaApp.getLabelForWikidata(x, Locale.getDefault()),
// See #16204#comment:10 - Don't use ForkJoinPool#commonPool(), does not work with WebStart
Utils.newForkJoinPool("wikipedia.wikidata.renderer.numberOfThreads", "wikidata-renderer-%d", Thread.NORM_PRIORITY)))
);
final Collection<String> texts = new ArrayList<>(ids.size());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment