Changeset 34159 in osm for applications


Ignore:
Timestamp:
2018-04-20T21:20:51+02:00 (7 years ago)
Author:
donvip
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/wikipedia/src/org/wikipedia/gui/WikidataTagCellRenderer.java

    r34079 r34159  
    5757        ids.forEach(id ->
    5858                labelCache.computeIfAbsent(id, x ->
    59                         CompletableFuture.supplyAsync(() -> WikipediaApp.getLabelForWikidata(x, Locale.getDefault())))
     59                        CompletableFuture.supplyAsync(() -> WikipediaApp.getLabelForWikidata(x, Locale.getDefault()),
     60                        // See #16204#comment:10 - Don't use ForkJoinPool#commonPool(), does not work with WebStart
     61                        Utils.newForkJoinPool("wikipedia.wikidata.renderer.numberOfThreads", "wikidata-renderer-%d", Thread.NORM_PRIORITY)))
    6062        );
    6163
Note: See TracChangeset for help on using the changeset viewer.