Changeset 12885 in josm for trunk


Ignore:
Timestamp:
2017-09-21T23:00:33+02:00 (2 years ago)
Author:
bastiK
Message:

see #15229 - fix checkstyle warnings

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

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/PreferenceToggleAction.java

    r12881 r12885  
    88import org.openstreetmap.josm.Main;
    99import org.openstreetmap.josm.spi.preferences.PreferenceChangeEvent;
    10 import org.openstreetmap.josm.data.Preferences;
    1110import org.openstreetmap.josm.spi.preferences.PreferenceChangedListener;
    1211import org.openstreetmap.josm.data.preferences.BooleanProperty;
  • trunk/src/org/openstreetmap/josm/data/Preferences.java

    r12882 r12885  
    195195    }
    196196
     197    /**
     198     * @deprecated private class is deprecated
     199     */
    197200    @Deprecated
    198201    private static class DefaultPreferenceChangeEvent implements PreferenceChangeEvent {
     
    227230    private final HashMap<String, ListenerList<org.openstreetmap.josm.spi.preferences.PreferenceChangedListener>> keyListeners = new HashMap<>();
    228231
     232    /**
     233     * @deprecated deprecated private field
     234     */
    229235    @Deprecated
    230236    private final ListenerList<Preferences.PreferenceChangedListener> listenersDeprecated = ListenerList.create();
    231237
     238    /**
     239     * @deprecated deprecated private field
     240     */
    232241    @Deprecated
    233242    private final HashMap<String, ListenerList<Preferences.PreferenceChangedListener>> keyListenersDeprecated = new HashMap<>();
     
    311320     * @param listener The listener to add.
    312321     * @since 10824
    313      * @deprecated use {@link #addKeyPreferenceChangeListener(java.lang.String, org.openstreetmap.josm.spi.preferences.PreferenceChangedListener)}
     322     * @deprecated use
     323     * {@link #addKeyPreferenceChangeListener(java.lang.String, org.openstreetmap.josm.spi.preferences.PreferenceChangedListener)}
    314324     */
    315325    @Deprecated
     
    332342    }
    333343
     344    /**
     345     * @deprecated deprecated private method
     346     */
    334347    @Deprecated
    335348    private ListenerList<Preferences.PreferenceChangedListener> listenersForKeyDeprecated(String key) {
     
    354367     * @param key The preference key to listen to
    355368     * @param listener The listener to add.
    356      * @deprecated use {@link #removeKeyPreferenceChangeListener(java.lang.String, org.openstreetmap.josm.spi.preferences.PreferenceChangedListener)}
     369     * @deprecated use
     370     * {@link #removeKeyPreferenceChangeListener(java.lang.String, org.openstreetmap.josm.spi.preferences.PreferenceChangedListener)}
    357371     */
    358372    @Deprecated
     
    364378
    365379    protected void firePreferenceChanged(String key, Setting<?> oldValue, Setting<?> newValue) {
    366         final org.openstreetmap.josm.spi.preferences.PreferenceChangeEvent evt = new org.openstreetmap.josm.spi.preferences.DefaultPreferenceChangeEvent(key, oldValue, newValue);
     380        final org.openstreetmap.josm.spi.preferences.PreferenceChangeEvent evt =
     381                new org.openstreetmap.josm.spi.preferences.DefaultPreferenceChangeEvent(key, oldValue, newValue);
    367382        listeners.fireEvent(listener -> listener.preferenceChanged(evt));
    368383
     
    374389    }
    375390
     391    /**
     392     * @deprecated deprecated private method
     393     */
    376394    @Deprecated
    377395    private void firePreferenceChangedDeprecated(String key, Setting<?> oldValue, Setting<?> newValue) {
Note: See TracChangeset for help on using the changeset viewer.