Ignore:
Timestamp:
2017-03-19T02:26:34+01:00 (3 years ago)
Author:
Don-vip
Message:

PMD - Strict Exceptions

Location:
trunk/src/org/openstreetmap/josm/tools/bugreport
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/bugreport/BugReport.java

    r10902 r11746  
    126126            try {
    127127                out.println(ShowStatusReportAction.getReportHeader());
    128             } catch (RuntimeException e) {
     128            } catch (RuntimeException e) { // NOPMD
    129129                out.println("Could not generate status report: " + e.getMessage());
    130130            }
  • trunk/src/org/openstreetmap/josm/tools/bugreport/BugReportDialog.java

    r11196 r11746  
    222222                current = current.getParent();
    223223            }
    224         } catch (RuntimeException e) {
     224        } catch (RuntimeException e) { // NOPMD
    225225            BugReport.intercept(e).put("current", current).warn();
    226226        }
  • trunk/src/org/openstreetmap/josm/tools/bugreport/ReportedException.java

    r11739 r11746  
    6666        try {
    6767            BugReportQueue.getInstance().submit(this);
    68         } catch (RuntimeException e) {
     68        } catch (RuntimeException e) { // NOPMD
    6969            e.printStackTrace();
    7070        }
     
    218218                string = value.toString();
    219219            }
    220         } catch (RuntimeException t) {
     220        } catch (RuntimeException t) { // NOPMD
    221221            Main.warn(t);
    222222            string = "<Error calling toString()>";
Note: See TracChangeset for help on using the changeset viewer.