Ignore:
Timestamp:
2018-05-13T09:15:34+02:00 (18 months ago)
Author:
wiktorn
Message:

Checkstyle fixes

Location:
trunk/src/org/openstreetmap/josm/io/imagery
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/imagery/ImageryReader.java

    r13733 r13742  
    290290                if ("layer".equals(qName)) {
    291291                    newState = State.NOOP;
    292                     defaultLayers.add(new DefaultLayer(entry.getImageryType(), atts.getValue("name"),atts.getValue("style"), atts.getValue("tileMatrixSet")));
     292                    defaultLayers.add(new DefaultLayer(
     293                            entry.getImageryType(),
     294                            atts.getValue("name"),
     295                            atts.getValue("style"),
     296                            atts.getValue("tileMatrixSet")
     297                            ));
    293298                }
    294299                break;
  • trunk/src/org/openstreetmap/josm/io/imagery/WMSImagery.java

    r13741 r13742  
    132132     * Make getCapabilities request towards given URL
    133133     * @param url service url
    134      * @throws IOException
    135      * @throws WMSGetCapabilitiesException
     134     * @throws IOException when connection error when fetching get capabilities document
     135     * @throws WMSGetCapabilitiesException when there are errors when parsing get capabilities document
    136136     */
    137137    public WMSImagery(String url) throws IOException, WMSGetCapabilitiesException {
     
    143143     * @param url service url
    144144     * @param headers HTTP headers to be sent with request
    145      * @throws IOException
    146      * @throws WMSGetCapabilitiesException
     145     * @throws IOException when connection error when fetching get capabilities document
     146     * @throws WMSGetCapabilitiesException when there are errors when parsing get capabilities document
    147147     */
    148148    public WMSImagery(String url, Map<String, String> headers) throws IOException, WMSGetCapabilitiesException {
     
    185185                } catch (MalformedURLException e1) { // NOPMD
    186186                    // do nothing, raise original exception
     187                    Logging.trace(e1);
    187188                }
    188189            }
     
    287288
    288289    /**
    289      * @see #buildGetMapUrl(List, boolean)
    290      *
    291290     * @param selectedLayers selected layers as subset of the tree returned by {@link #getLayers()}
    292291     * @param selectedStyles selected styles for all selectedLayers
    293292     * @param transparent whether returned images should contain transparent pixels (if supported by format)
    294293     * @return URL template for GetMap service
     294     * @see #buildGetMapUrl(List, boolean)
    295295     */
    296296    public String buildGetMapUrl(List<LayerDetails> selectedLayers, List<String> selectedStyles, boolean transparent) {
     
    303303
    304304    /**
    305      * @see #buildGetMapUrl(List, boolean)
    306      *
    307305     * @param selectedLayers selected layers as list of strings
    308306     * @param selectedStyles selected styles of layers as list of strings
     
    310308     * @param transparent whether returned images should contain transparent pixels (if supported by format)
    311309     * @return URL template for GetMap service
     310     * @see #buildGetMapUrl(List, boolean)
    312311     */
    313312    public String buildGetMapUrl(List<String> selectedLayers,
     
    385384        if (GetCapabilitiesParseHelper.moveReaderToTag(reader, this::tagEquals, QN_TITLE)) {
    386385            this.title = reader.getElementText();
     386            // CHECKSTYLE.OFF: EmptyBlock
    387387            for (int event = reader.getEventType();
    388388                    reader.hasNext() && !(event == XMLStreamReader.END_ELEMENT && tagEquals(QN_SERVICE, reader.getName()));
     
    390390                // empty loop, just move reader to the end of Service tag, if moveReaderToTag return false, it's already done
    391391            }
     392            // CHECKSTYLE.ON: EmptyBlock
    392393        }
    393394    }
     
    591592    }
    592593
    593 
    594594    private String normalizeUrl(String serviceUrlStr) throws MalformedURLException {
    595595        URL getCapabilitiesUrl = null;
     
    641641    }
    642642
    643 
    644643    static boolean imageFormatHasTransparency(final String format) {
    645644        return format != null && (format.startsWith("image/png") || format.startsWith("image/gif")
     
    686685
    687686    /**
    688      * @param defaultLayers
     687     * @param defaultLayers default layers that should select layer object
    689688     * @return collection of LayerDetails specified by DefaultLayers
    690689     */
Note: See TracChangeset for help on using the changeset viewer.