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


Ignore:
Timestamp:
2018-01-15T01:39:35+01:00 (2 years ago)
Author:
Don-vip
Message:

see #15709 - sonar - squid:S2387 - "mouseListener" is the name of a field in "Component"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageDisplay.java

    r13295 r13327  
    6565    private final MediaTracker tracker = new MediaTracker(this);
    6666
    67     private final ImgDisplayMouseListener mouseListener = new ImgDisplayMouseListener();
     67    private final ImgDisplayMouseListener imgMouseListener = new ImgDisplayMouseListener();
    6868
    6969    private String osdText;
     
    666666     */
    667667    public ImageDisplay() {
    668         addMouseListener(mouseListener);
    669         addMouseWheelListener(mouseListener);
    670         addMouseMotionListener(mouseListener);
     668        addMouseListener(imgMouseListener);
     669        addMouseWheelListener(imgMouseListener);
     670        addMouseMotionListener(imgMouseListener);
    671671        Config.getPref().addPreferenceChangeListener(this);
    672672        preferenceChanged(null);
     
    675675    @Override
    676676    public void destroy() {
    677         removeMouseListener(mouseListener);
    678         removeMouseWheelListener(mouseListener);
    679         removeMouseMotionListener(mouseListener);
     677        removeMouseListener(imgMouseListener);
     678        removeMouseWheelListener(imgMouseListener);
     679        removeMouseMotionListener(imgMouseListener);
    680680        Config.getPref().removePreferenceChangeListener(this);
    681681    }
Note: See TracChangeset for help on using the changeset viewer.