Ignore:
Timestamp:
2017-01-12T01:38:04+01:00 (7 years ago)
Author:
Don-vip
Message:

sonar - fb-contrib:BED_BOGUS_EXCEPTION_DECLARATION - Correctness - Non derivable method declares throwing an exception that isn't thrown

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/imagery/GetCapabilitiesParseHelper.java

    r11018 r11453  
    22package org.openstreetmap.josm.data.imagery;
    33
    4 import java.io.IOException;
    54import java.io.InputStream;
    65import java.net.MalformedURLException;
     
    7574     * @param in InputStream with pointing to GetCapabilities XML stream
    7675     * @return safe XMLStreamReader, that is not validating external entities, nor loads DTD's
    77      * @throws IOException if any I/O error occurs
    7876     * @throws XMLStreamException if any XML stream error occurs
    7977     */
    80     public static XMLStreamReader getReader(InputStream in) throws IOException, XMLStreamException {
     78    public static XMLStreamReader getReader(InputStream in) throws XMLStreamException {
    8179        XMLInputFactory factory = XMLInputFactory.newFactory();
    8280        // do not try to load external entities, nor validate the XML
Note: See TracChangeset for help on using the changeset viewer.