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/tools/OpenBrowser.java

    r8540 r10212  
    77import java.io.IOException;
    88import java.net.URI;
     9import java.net.URISyntaxException;
    910
    1011import org.openstreetmap.josm.Main;
     
    6263                    }
    6364                }
    64             } catch (Exception e) {
     65            } catch (IOException e) {
    6566                Main.warn(e);
    6667                return e.getMessage();
     
    8889        try {
    8990            return displayUrl(new URI(url));
    90         } catch (Exception e) {
     91        } catch (URISyntaxException e) {
    9192            return e.getMessage();
    9293        }
Note: See TracChangeset for help on using the changeset viewer.