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

PMD - Strict Exceptions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/preferences/PreferencesWriter.java

    r11553 r11746  
    8888            addDefaults();
    8989        } else {
    90             throw new NullPointerException();
     90            throw new IllegalArgumentException(setting.toString());
    9191        }
    9292    }
     
    105105            addDefaults();
    106106        } else {
    107             throw new NullPointerException();
     107            throw new IllegalArgumentException(setting.toString());
    108108        }
    109109    }
     
    126126            addDefaults();
    127127        } else {
    128             throw new NullPointerException();
     128            throw new IllegalArgumentException(setting.toString());
    129129        }
    130130    }
     
    147147            addDefaults();
    148148        } else {
    149             throw new NullPointerException();
     149            throw new IllegalArgumentException(setting.toString());
    150150        }
    151151    }
Note: See TracChangeset for help on using the changeset viewer.