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

Checkstyle fixes

Location:
trunk/src/org/openstreetmap/josm/data/imagery
Files:
6 edited

Legend:

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

    r13732 r13742  
    117117     * @param reader XMLStreamReader that should point to start of element
    118118     * @return content of current tag
    119      * @throws XMLStreamException
     119     * @throws XMLStreamException if any XML stream error occurs
    120120     */
    121121    public static String getElementTextWithSubtags(XMLStreamReader reader) throws XMLStreamException {
  • trunk/src/org/openstreetmap/josm/data/imagery/ImageryInfo.java

    r13733 r13742  
    14321432    /**
    14331433     * Sets custom HTTP headers that should be sent with request towards imagery provider
    1434      * @param customHttpHeaders
     1434     * @param customHttpHeaders http headers
    14351435     */
    14361436    public void setCustomHttpHeaders(Map<String, String> customHttpHeaders) {
     
    14621462    /**
    14631463     * Sets minimum tile expiration in seconds
    1464      * @param minimumTileExpire
     1464     * @param minimumTileExpire minimum tile expiration in seconds
    14651465     */
    14661466    public void setMinimumTileExpire(int minimumTileExpire) {
  • trunk/src/org/openstreetmap/josm/data/imagery/LayerDetails.java

    r13733 r13742  
    3838     * This is needed to properly handle layer attributes inheritance.
    3939     *
    40      * @param parentLayer
     40     * @param parentLayer parent layer
    4141     */
    4242    public LayerDetails(LayerDetails parentLayer) {
     
    7070
    7171    /**
     72     * @return title "Human readable" title of this layer
    7273     * @see LayerDetails#getName()
    73      * @return title "Human readable" title of this layer
    7474     */
    7575    public String getTitle() {
     
    7878
    7979    /**
     80     * @param title set title of this layer
    8081     * @see LayerDetails#getName()
    81      * @param title set title of this layer
    8282     */
    8383    public void setTitle(String title) {
     
    8888     *
    8989     * Citation from OGC WMS specification (WMS 1.3.0):
    90      * > A number of elements have both a <Name> and a <Title>. The Name is a text string used for machine-to-machine
     90     * > A number of elements have both a {@literal <Name>} and a {@literal <Title>}. The Name is a text string used for machine-to-machine
    9191     * > communication while the Title is for the benefit of humans. For example, a dataset might have the descriptive Title
    9292     * > “Maximum Atmospheric Temperature” and be requested using the abbreviated Name “ATMAX”.
    9393     *
    9494     * And second citation:
    95      * > If, and only if, a layer has a <Name>, then it is a map layer that can be requested by using that Name in the
    96      * > LAYERS parameter of a GetMap request. A Layer that contains a <Name> element is referred to as a “named
     95     * > If, and only if, a layer has a {@literal <Name>}, then it is a map layer that can be requested by using that Name in the
     96     * > LAYERS parameter of a GetMap request. A Layer that contains a {@literal <Name>} element is referred to as a “named
    9797     * > layer” in this International Standard. If the layer has a Title but no Name, then that layer is only a category title for
    9898     * > all the layers nested within.
     
    104104
    105105    /**
     106     * @param name sets the name of this Layer
    106107     * @see LayerDetails#getName()
    107      * @param name sets the name of this Layer
    108108     */
    109109    public void setName(String name) {
     
    138138    /**
    139139     * sets bounds of this layer
    140      * @param bounds
     140     * @param bounds of this layer
    141141     */
    142142    public void setBounds(Bounds bounds) {
     
    160160    /**
    161161     * sets children layers for this layer
    162      * @param children
     162     * @param children children of this layer
    163163     */
    164164    public void setChildren(List<LayerDetails> children) {
     
    192192    /**
    193193     * Sets abstract of this layer
    194      * @param abstr
     194     * @param abstr abstract of this layer
    195195     */
    196196    public void setAbstract(String abstr) {
  • trunk/src/org/openstreetmap/josm/data/imagery/TileJobOptions.java

    r13733 r13742  
    2323     * @param connectTimeout in milliseconds
    2424     * @param readTimeout in milliseconds
    25      * @param headers
     25     * @param headers http headers
    2626     * @param minimumExpiryTime in seconds
    2727     */
  • trunk/src/org/openstreetmap/josm/data/imagery/WMSEndpointTileSource.java

    r13733 r13742  
    3131    private List<DefaultLayer> layers;
    3232    private String urlPattern;
    33     private static final Pattern PATTERN_PARAM  = Pattern.compile("\\{([^}]+)\\}");
     33    private static final Pattern PATTERN_PARAM = Pattern.compile("\\{([^}]+)\\}");
    3434    private final Map<String, String> headers = new ConcurrentHashMap<>();
    3535
  • trunk/src/org/openstreetmap/josm/data/imagery/WMTSTileSource.java

    r13740 r13742  
    303303     * @param info imagery info
    304304     * @throws IOException if any I/O error occurs
    305      * @throws WMTSGetCapabilitiesException
     305     * @throws WMTSGetCapabilitiesException when document didn't contain any layers
    306306     * @throws IllegalArgumentException if any other error happens for the given imagery info
    307307     */
     
    312312        this.baseUrl = GetCapabilitiesParseHelper.normalizeCapabilitiesUrl(handleTemplate(info.getUrl()));
    313313        WMTSCapabilities capabilities = getCapabilities(baseUrl, headers);
    314         this.layers =  capabilities.getLayers();
     314        this.layers = capabilities.getLayers();
    315315        this.baseUrl = capabilities.getBaseUrl();
    316316        this.transferMode = capabilities.getTransferMode();
     
    374374     * @return capabilities
    375375     * @throws IOException in case of any I/O error
    376      * @throws WMTSGetCapabilitiesException
     376     * @throws WMTSGetCapabilitiesException when document didn't contain any layers
    377377     * @throws IllegalArgumentException in case of any other error
    378378     */
Note: See TracChangeset for help on using the changeset viewer.