Changeset 9966 in josm for trunk/src


Ignore:
Timestamp:
2016-03-12T11:24:38+01:00 (9 years ago)
Author:
Don-vip
Message:

sonar - remove redundant null-checks

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

Legend:

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

    r9965 r9966  
    14371437        if (loadedVersion < 9715) {
    14381438            Setting<?> setting = settingsMap.get("imagery.entries");
    1439             if (setting != null && setting instanceof MapListSetting) {
     1439            if (setting instanceof MapListSetting) {
    14401440                List<Map<String, String>> l = new LinkedList<>();
    14411441                boolean modified = false;
     
    14621462        if (loadedVersion < 9965) {
    14631463            Setting<?> setting = settingsMap.get("mappaint.style.entries");
    1464             if (setting != null && setting instanceof MapListSetting) {
     1464            if (setting instanceof MapListSetting) {
    14651465                List<Map<String, String>> l = new LinkedList<>();
    14661466                boolean modified = false;
  • trunk/src/org/openstreetmap/josm/gui/mappaint/StyleSetting.java

    r9786 r9966  
    9292
    9393        public void setValue(Object o) {
    94             if (o == null || !(o instanceof Boolean)) {
     94            if (!(o instanceof Boolean)) {
    9595                throw new IllegalArgumentException();
    9696            }
Note: See TracChangeset for help on using the changeset viewer.