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/io/FileImporter.java

    r9231 r10212  
    9999            }
    100100            return false;
    101         } catch (Exception e) {
     101        } catch (IOException e) {
    102102            displayError(f, e);
    103103            return false;
     
    138138            importData(files, progressMonitor);
    139139            return true;
    140         } catch (Exception e) {
     140        } catch (IOException | IllegalDataException e) {
    141141            Main.error(e);
    142142            HelpAwareOptionPane.showMessageDialogInEDT(
Note: See TracChangeset for help on using the changeset viewer.