Ignore:
Timestamp:
2015-05-20T02:46:51+02:00 (9 years ago)
Author:
Don-vip
Message:

fix some minor Sonar issues

File:
1 edited

Legend:

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

    r8397 r8401  
    6363
    6464    public static class LIFOQueue extends LinkedBlockingDeque<Runnable> {
     65
     66        /**
     67         * Constructs a new {@code LIFOQueue} with a capacity of {@link Integer#MAX_VALUE}.
     68         */
    6569        public LIFOQueue() {
    6670            super();
    6771        }
    6872
     73        /**
     74         * Constructs a new {@code LIFOQueue} with the given (fixed) capacity.
     75         * @param capacity the capacity of this deque
     76         * @throws IllegalArgumentException if {@code capacity} is less than 1
     77         */
    6978        public LIFOQueue(int capacity) {
    7079            super(capacity);
     
    8392
    8493
    85     /*
     94    /**
    8695     * ThreadPoolExecutor starts new threads, until THREAD_LIMIT is reached. Then it puts tasks into LIFOQueue, which is fairly
    8796     * small, but we do not want a lot of outstanding tasks queued, but rather prefer the class consumer to resubmit the task, which are
Note: See TracChangeset for help on using the changeset viewer.