Ignore:
Timestamp:
2014-05-02T02:37:08+02:00 (10 years ago)
Author:
Don-vip
Message:

sonar - Throwable and Error classes should not be caught

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/ExtensionFileFilter.java

    r7005 r7048  
    6464                importers.add(importer);
    6565                MapView.addLayerChangeListener(importer);
    66             } catch (Throwable t) {
    67                 Main.debug(t.getMessage());
     66            } catch (Exception e) {
     67                Main.debug(e.getMessage());
    6868            }
    6969        }
     
    8585                exporters.add(exporter);
    8686                MapView.addLayerChangeListener(exporter);
    87             } catch (Throwable t) {
    88                 Main.debug(t.getMessage());
     87            } catch (Exception e) {
     88                Main.debug(e.getMessage());
    8989            }
    9090        }
Note: See TracChangeset for help on using the changeset viewer.