Ignore:
Timestamp:
2017-01-12T01:38:04+01:00 (9 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/preferences/PreferencesReader.java

    r10306 r11453  
    5252     * @param defaults true when reading from the cache file for default preferences,
    5353     * false for the regular preferences config file
    54      * @throws IOException if any I/O error occurs
    55      * @throws XMLStreamException if any XML stream error occurs
    56      */
    57     public PreferencesReader(File file, boolean defaults) throws IOException, XMLStreamException {
     54     */
     55    public PreferencesReader(File file, boolean defaults) {
    5856        this.defaults = defaults;
    5957        this.reader = null;
     
    6664     * @param defaults true when reading from the cache file for default preferences,
    6765     * false for the regular preferences config file
    68      * @throws XMLStreamException if any XML stream error occurs
    69      */
    70     public PreferencesReader(Reader reader, boolean defaults) throws XMLStreamException {
     66     */
     67    public PreferencesReader(Reader reader, boolean defaults) {
    7168        this.defaults = defaults;
    7269        this.reader = reader;
Note: See TracChangeset for help on using the changeset viewer.