Ignore:
Timestamp:
2017-01-12T01:38:04+01:00 (7 years ago)
Author:
Don-vip
Message:

sonar - fb-contrib:BED_BOGUS_EXCEPTION_DECLARATION - Correctness - Non derivable method declares throwing an exception that isn't thrown

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

Legend:

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

    r11018 r11453  
    22package org.openstreetmap.josm.data.imagery;
    33
    4 import java.io.IOException;
    54import java.io.InputStream;
    65import java.net.MalformedURLException;
     
    7574     * @param in InputStream with pointing to GetCapabilities XML stream
    7675     * @return safe XMLStreamReader, that is not validating external entities, nor loads DTD's
    77      * @throws IOException if any I/O error occurs
    7876     * @throws XMLStreamException if any XML stream error occurs
    7977     */
    80     public static XMLStreamReader getReader(InputStream in) throws IOException, XMLStreamException {
     78    public static XMLStreamReader getReader(InputStream in) throws XMLStreamException {
    8179        XMLInputFactory factory = XMLInputFactory.newFactory();
    8280        // do not try to load external entities, nor validate the XML
  • trunk/src/org/openstreetmap/josm/data/imagery/TMSCachedTileLoader.java

    r11438 r11453  
    22package org.openstreetmap.josm.data.imagery;
    33
    4 import java.io.IOException;
    54import java.util.Map;
    65import java.util.concurrent.ThreadPoolExecutor;
     
    6059     * @param readTimeout       to remote resource
    6160     * @param headers           HTTP headers to be sent along with request
    62      * @throws IOException      when cache initialization fails
    6361     */
    6462    public TMSCachedTileLoader(TileLoaderListener listener, ICacheAccess<String, BufferedImageCacheEntry> cache,
    65             int connectTimeout, int readTimeout, Map<String, String> headers) throws IOException {
     63            int connectTimeout, int readTimeout, Map<String, String> headers) {
    6664        CheckParameterUtil.ensureParameterNotNull(cache, "cache");
    6765        this.cache = cache;
  • trunk/src/org/openstreetmap/josm/data/imagery/WMSCachedTileLoader.java

    r11438 r11453  
    22package org.openstreetmap.josm.data.imagery;
    33
    4 import java.io.IOException;
    54import java.util.Map;
    65
     
    2524     */
    2625    public static final IntegerProperty THREAD_LIMIT = new IntegerProperty("imagery.wms.loader.maxjobs", 3);
     26
    2727    /**
    2828     * Creates a TileLoader with separate WMS downloader.
     
    3333     * @param readTimeout from tile source
    3434     * @param headers to be sent with requests
    35      * @throws IOException when there is a problem creating cache repository
    3635     */
    3736    public WMSCachedTileLoader(TileLoaderListener listener, ICacheAccess<String, BufferedImageCacheEntry> cache,
    38             int connectTimeout, int readTimeout, Map<String, String> headers) throws IOException {
     37            int connectTimeout, int readTimeout, Map<String, String> headers) {
    3938
    4039        super(listener, cache, connectTimeout, readTimeout, headers);
Note: See TracChangeset for help on using the changeset viewer.