Changeset 12199 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2017-05-17T02:57:03+02:00 (7 years ago)
Author:
Don-vip
Message:

checkstyle/PMD/findbugs

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

Legend:

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

    r12186 r12199  
    8080    private double east = Double.NaN;
    8181    private double north = Double.NaN;
    82     private Object eastNorthCacheKey = null;
     82    private Object eastNorthCacheKey;
    8383
    8484    /**
  • trunk/src/org/openstreetmap/josm/data/preferences/AbstractProperty.java

    r12196 r12199  
    267267    private class WeakPreferenceAdapter extends ListenableWeakReference<ValueChangeListener<? super T>>
    268268            implements ValueChangeListener<T> {
    269         public WeakPreferenceAdapter(ValueChangeListener<? super T> referent) {
     269        WeakPreferenceAdapter(ValueChangeListener<? super T> referent) {
    270270            super(referent);
    271271        }
     
    273273        @Override
    274274        public void valueChanged(ValueChangeEvent<? extends T> e) {
    275             ValueChangeListener<? super T> r = this.get();
    276             r.valueChanged(e);
     275            ValueChangeListener<? super T> r = super.get();
     276            if (r != null) {
     277                r.valueChanged(e);
     278            }
    277279        }
    278280
     
    281283            removeListenerImpl(new PreferenceChangedListenerAdapter(this));
    282284        }
    283 
    284285    }
    285286
Note: See TracChangeset for help on using the changeset viewer.