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/gui/JosmUserIdentityManager.java

    r9759 r10212  
    6666                try {
    6767                    instance.initFromOAuth();
    68                 } catch (Exception e) {
     68                } catch (RuntimeException e) {
    6969                    Main.error(e);
    7070                    // Fall back to preferences if OAuth identification fails for any reason
     
    304304            accessTokenSecretChanged = false;
    305305            if (OsmApi.isUsingOAuth()) {
    306                 try {
    307                     getInstance().initFromOAuth();
    308                 } catch (Exception e) {
    309                     Main.error(e);
    310                 }
     306                getInstance().initFromOAuth();
    311307            }
    312308        }
Note: See TracChangeset for help on using the changeset viewer.