Ignore:
Timestamp:
2016-05-15T00:51:10+02:00 (8 years ago)
Author:
Don-vip
Message:

sonar - squid:S2221 - "Exception" should not be caught when not required by called methods

File:
1 edited

Legend:

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

    r10185 r10212  
    297297     * @return true if object was successfully downloaded, false, if there was a loading failure
    298298     */
    299 
    300299    private boolean loadObject() {
    301300        if (attributes == null) {
     
    396395            }
    397396            return doCache;
    398         } catch (Exception e) {
     397        } catch (InterruptedException e) {
    399398            attributes.setErrorMessage(e.toString());
    400399            log.log(Level.WARNING, "JCS - Exception during download {0}",  getUrlNoException());
     
    403402        log.log(Level.WARNING, "JCS - Silent failure during download: {0}", getUrlNoException());
    404403        return false;
    405 
    406404    }
    407405
Note: See TracChangeset for help on using the changeset viewer.