Changeset 12199 in josm for trunk


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

checkstyle/PMD/findbugs

Location:
trunk
Files:
3 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
  • trunk/tools/pmd/josm-ruleset.xml

    r11930 r12199  
    2929  <rule ref="rulesets/java/strictexception.xml">
    3030        <exclude name="ExceptionAsFlowControl"/>
     31        <exclude name="AvoidCatchingGenericException"/>
    3132        <exclude name="AvoidRethrowingException"/>
    3233  </rule>
Note: See TracChangeset for help on using the changeset viewer.