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/gui/dialogs/relation/DownloadRelationTask.java

    r9078 r10212  
    55
    66import java.io.IOException;
     7import java.lang.reflect.InvocationTargetException;
    78import java.util.Collection;
    89
     
    107108                    }
    108109            );
    109         } catch (Exception e) {
     110        } catch (OsmTransferException | InvocationTargetException | InterruptedException e) {
    110111            if (canceled) {
    111112                Main.warn(tr("Ignoring exception because task was canceled. Exception: {0}", e.toString()));
Note: See TracChangeset for help on using the changeset viewer.