Ignore:
Timestamp:
2014-04-26T15:28:16+02:00 (10 years ago)
Author:
Don-vip
Message:

see #8465 - use multi-catch where applicable

File:
1 edited

Legend:

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

    r6906 r7004  
    77import java.io.IOException;
    88import java.net.HttpURLConnection;
    9 import java.net.MalformedURLException;
    109import java.net.URL;
    1110
     
    123122            Document d = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(connection.getInputStream());
    124123            return OsmServerUserInfoReader.buildFromXML(d);
    125         } catch(SAXException e) {
     124        } catch(SAXException | ParserConfigurationException e) {
    126125            throw new XmlParsingException(e);
    127         } catch(ParserConfigurationException e){
    128             throw new XmlParsingException(e);
    129         } catch(MalformedURLException e) {
    130             throw new OsmTransferException(e);
    131         } catch(IOException e){
     126        } catch(IOException e) {
    132127            throw new OsmTransferException(e);
    133128        } catch(OAuthException e) {
Note: See TracChangeset for help on using the changeset viewer.