Ignore:
Timestamp:
2018-12-31T19:36:59+01:00 (5 years ago)
Author:
Don-vip
Message:

fix various SonarQube issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/imagery/TMSCachedTileLoader.java

    r14261 r14624  
    7878     */
    7979    public static ThreadPoolExecutor getNewThreadPoolExecutor(String nameFormat, int workers, int hostLimit) {
    80         ThreadPoolExecutor executor = new ThreadPoolExecutor(
     80        return new ThreadPoolExecutor(
    8181                workers, // keep core pool the same size as max, as we use unbounded queue so there will
    8282                workers, // be never more threads than corePoolSize
     
    8686                Utils.newThreadFactory(nameFormat, Thread.NORM_PRIORITY)
    8787                );
    88         return executor;
    8988    }
    9089
Note: See TracChangeset for help on using the changeset viewer.