Ignore:
Timestamp:
2017-01-12T01:38:04+01:00 (3 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

Location:
trunk/src/org/openstreetmap/josm/io
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/Capabilities.java

    r10632 r11453  
    242242
    243243        @Override
    244         public void startDocument() throws SAXException {
     244        public void startDocument() {
    245245            capabilities = new Capabilities();
    246246        }
    247247
    248248        @Override
    249         public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException {
     249        public void startElement(String namespaceURI, String localName, String qName, Attributes atts) {
    250250            for (int i = 0; i < atts.getLength(); i++) {
    251251                capabilities.put(qName, atts.getQName(i), atts.getValue(i));
  • trunk/src/org/openstreetmap/josm/io/NoteReader.java

    r11100 r11453  
    202202     * Initializes the reader with a given InputStream
    203203     * @param source - InputStream containing Notes XML
    204      * @throws IOException if any I/O error occurs
    205      */
    206     public NoteReader(InputStream source) throws IOException {
     204     */
     205    public NoteReader(InputStream source) {
    207206        this.inputSource = new InputSource(source);
    208207    }
     
    211210     * Initializes the reader with a string as a source
    212211     * @param source UTF-8 string containing Notes XML to parse
    213      * @throws IOException if any I/O error occurs
    214      */
    215     public NoteReader(String source) throws IOException {
     212     */
     213    public NoteReader(String source) {
    216214        this.inputSource = new InputSource(new ByteArrayInputStream(source.getBytes(StandardCharsets.UTF_8)));
    217215    }
Note: See TracChangeset for help on using the changeset viewer.