Ignore:
Timestamp:
2018-05-24T23:53:37+02:00 (6 years ago)
Author:
wiktorn
Message:

Sonar fixes, javadocs.

See: #16249

File:
1 edited

Legend:

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

    r13824 r13828  
    1414import java.util.Collection;
    1515import java.util.Collections;
     16import java.util.Deque;
    1617import java.util.LinkedHashSet;
     18import java.util.LinkedList;
    1719import java.util.List;
    1820import java.util.Map;
     
    2123import java.util.Optional;
    2224import java.util.SortedSet;
    23 import java.util.Stack;
    2425import java.util.TreeSet;
    2526import java.util.concurrent.ConcurrentHashMap;
     
    252253
    253254    /**
    254      * Exception thrown when praser doesn't find expected information in GetCapabilities document
     255     * Exception thrown when parser doesn't find expected information in GetCapabilities document
    255256     *
    256257     */
     
    258259
    259260        /**
     261         * Create WMTS exception
    260262         * @param cause description of cause
    261263         */
     
    265267
    266268        /**
     269         * Create WMTS exception
    267270         * @param cause description of cause
    268271         * @param t nested exception
     
    373376
    374377    /**
     378     * Call remote server and parse response to WMTSCapabilities object
     379     *
    375380     * @param url of the getCapabilities document
    376381     * @param headers HTTP headers to set when calling getCapabilities url
     
    479484    private static Layer parseLayer(XMLStreamReader reader) throws XMLStreamException {
    480485        Layer layer = new Layer();
    481         Stack<QName> tagStack = new Stack<>();
     486        Deque<QName> tagStack = new LinkedList<>();
    482487        List<String> supportedMimeTypes = new ArrayList<>(Arrays.asList(ImageIO.getReaderMIMETypes()));
    483488        supportedMimeTypes.add("image/jpgpng");         // used by ESRI
Note: See TracChangeset for help on using the changeset viewer.