Ignore:
Timestamp:
2016-10-07T10:20:53+02:00 (8 years ago)
Author:
Don-vip
Message:

sonar - squid:S1141 - Try-catch blocks should not be nested

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/tests/MapCSSTagChecker.java

    r11083 r11087  
    311311                        if (ai.key.startsWith("throw")) {
    312312                            try {
    313                                 final Severity severity = Severity.valueOf(ai.key.substring("throw".length()).toUpperCase(Locale.ENGLISH));
    314                                 check.errors.put(ai, severity);
     313                                check.errors.put(ai, Severity.valueOf(ai.key.substring("throw".length()).toUpperCase(Locale.ENGLISH)));
    315314                            } catch (IllegalArgumentException e) {
    316315                                Main.warn(e, "Unsupported "+ai.key+" instruction. Allowed instructions are "+POSSIBLE_THROWS+'.');
     
    753752                addMapCSS(i);
    754753                if (Main.pref.getBoolean("validator.auto_reload_local_rules", true) && source.isLocal()) {
    755                     try {
    756                         Main.fileWatcher.registerValidatorRule(source);
    757                     } catch (IOException e) {
    758                         Main.error(e);
    759                     }
     754                    Main.fileWatcher.registerValidatorRule(source);
    760755                }
    761756            } catch (IOException ex) {
Note: See TracChangeset for help on using the changeset viewer.