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

PMD - Strict Exceptions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/JosmUserIdentityManager.java

    r11739 r11746  
    2020import org.openstreetmap.josm.io.auth.CredentialsManager;
    2121import org.openstreetmap.josm.tools.CheckParameterUtil;
     22import org.openstreetmap.josm.tools.JosmRuntimeException;
    2223
    2324/**
     
    6667                try {
    6768                    instance.initFromOAuth();
    68                 } catch (RuntimeException e) {
     69                } catch (JosmRuntimeException | IllegalArgumentException | IllegalStateException e) {
    6970                    Main.error(e);
    7071                    // Fall back to preferences if OAuth identification fails for any reason
Note: See TracChangeset for help on using the changeset viewer.