Changeset 11496 in josm


Ignore:
Timestamp:
2017-01-25T14:57:02+01:00 (3 years ago)
Author:
Don-vip
Message:

findbugs - URF_UNREAD_FIELD

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

Legend:

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

    r11099 r11496  
    8787    public static class ValueChangeEvent<T> {
    8888        private final PreferenceChangeEvent base;
    89 
    9089        private final AbstractProperty<T> source;
    9190
     
    9392            this.base = base;
    9493            this.source = source;
     94        }
     95
     96        /**
     97         * Get the base event.
     98         * @return the base event
     99         * @since 11496
     100         */
     101        public final PreferenceChangeEvent getBaseEvent() {
     102            return base;
    95103        }
    96104
  • trunk/src/org/openstreetmap/josm/gui/dialogs/MenuItemSearchDialog.java

    r11341 r11496  
    1010import java.util.Optional;
    1111
    12 import javax.swing.DefaultListCellRenderer;
    1312import javax.swing.JList;
    1413import javax.swing.JMenuItem;
     
    8988    private static class CellRenderer implements ListCellRenderer<JMenuItem> {
    9089
    91         private final DefaultListCellRenderer def = new DefaultListCellRenderer();
    92 
    9390        @Override
    9491        public Component getListCellRendererComponent(JList<? extends JMenuItem> list, JMenuItem value, int index,
Note: See TracChangeset for help on using the changeset viewer.