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/AutosaveTask.java

    r10043 r10212  
    165165                    try (PrintStream ps = new PrintStream(pidFile, "UTF-8")) {
    166166                        ps.println(ManagementFactory.getRuntimeMXBean().getName());
    167                     } catch (Exception t) {
     167                    } catch (IOException | SecurityException t) {
    168168                        Main.error(t);
    169169                    }
     
    213213                    displayNotification();
    214214                }
    215             } catch (Exception t) {
     215            } catch (RuntimeException t) {
    216216                // Don't let exception stop time thread
    217217                Main.error("Autosave failed:");
     
    312312                            skipFile = jvmPerfDataFileExists(pid);
    313313                        }
    314                     } catch (Exception t) {
     314                    } catch (IOException | SecurityException t) {
    315315                        Main.error(t);
    316316                    }
Note: See TracChangeset for help on using the changeset viewer.