Changeset 11445 in josm for trunk/src/org


Ignore:
Timestamp:
2017-01-09T08:59:03+01:00 (3 years ago)
Author:
Don-vip
Message:

checkstyle

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/cache/HostLimitQueue.java

    r11444 r11445  
    117117     * See: http://stackoverflow.com/questions/9622599/java-threadpoolexecutor-strategy-direct-handoff-with-queue#
    118118     *
    119      * @param executor
     119     * @param executor executor for which this queue works
    120120     */
    121 
    122121    public void setExecutor(ThreadPoolExecutor executor) {
    123122        this.executor = executor;
     
    127126
    128127    @Override
    129     public boolean offer(Runnable e)
    130     {
    131         if (super.offer(e) == false)
    132         {
     128    public boolean offer(Runnable e) {
     129        if (!super.offer(e)) {
    133130            return false;
    134131        }
     
    139136            int currentPoolSize = executor.getPoolSize();
    140137            if (currentPoolSize < maximumPoolSize
    141                     && currentPoolSize >= corePoolSize)
    142             {
     138                    && currentPoolSize >= corePoolSize) {
    143139                executor.setCorePoolSize(currentPoolSize + 1);
    144140                executor.setCorePoolSize(corePoolSize);
Note: See TracChangeset for help on using the changeset viewer.