Ignore:
Timestamp:
2014-10-21T02:58:34+02:00 (10 years ago)
Author:
donvip
Message:

[jmapviewer] fix warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/JMapViewer.java

    r30628 r30759  
    4343public class JMapViewer extends JPanel implements TileLoaderListener {
    4444
    45     private static final long serialVersionUID = 1L;
    46 
    4745    public static boolean debug = false;
    4846
     
    10098     * retrieving the tiles.
    10199     */
     100    @SuppressWarnings("unused")
    102101    public JMapViewer() {
    103102        this(new MemoryTileCache(), 8);
     
    10661065    }
    10671066
    1068     protected EventListenerList listenerList = new EventListenerList();
     1067    protected EventListenerList evtListenerList = new EventListenerList();
    10691068
    10701069    /**
     
    10721071     */
    10731072    public void addJMVListener(JMapViewerEventListener listener) {
    1074         listenerList.add(JMapViewerEventListener.class, listener);
     1073        evtListenerList.add(JMapViewerEventListener.class, listener);
    10751074    }
    10761075
     
    10791078     */
    10801079    public void removeJMVListener(JMapViewerEventListener listener) {
    1081         listenerList.remove(JMapViewerEventListener.class, listener);
     1080        evtListenerList.remove(JMapViewerEventListener.class, listener);
    10821081    }
    10831082
     
    10881087     */
    10891088    void fireJMVEvent(JMVCommandEvent evt) {
    1090         Object[] listeners = listenerList.getListenerList();
     1089        Object[] listeners = evtListenerList.getListenerList();
    10911090        for (int i=0; i<listeners.length; i+=2) {
    10921091            if (listeners[i]==JMapViewerEventListener.class) {
Note: See TracChangeset for help on using the changeset viewer.