Changeset 2766 in josm


Ignore:
Timestamp:
2010-01-07T23:16:17+01:00 (11 years ago)
Author:
Gubaer
Message:

fixed #4310: r2758 breaks the build - Java 6 features ?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java

    r2760 r2766  
    1212import java.util.LinkedList;
    1313import java.util.List;
     14import java.util.Stack;
    1415import java.util.TreeMap;
    1516import java.util.concurrent.CopyOnWriteArrayList;
     
    381382    }
    382383
    383     private LinkedList<ZoomData> zoomUndoBuffer = new LinkedList<ZoomData>();
    384     private LinkedList<ZoomData> zoomRedoBuffer = new LinkedList<ZoomData>();
     384    private Stack<ZoomData> zoomUndoBuffer = new Stack<ZoomData>();
     385    private Stack<ZoomData> zoomRedoBuffer = new Stack<ZoomData>();
    385386    private Date zoomTimestamp = new Date();
    386387
     
    390391            zoomUndoBuffer.push(new ZoomData(center, scale));
    391392            if (zoomUndoBuffer.size() > Main.pref.getInteger("zoom.undo.max", 50)) {
    392                 zoomUndoBuffer.poll();
     393                zoomUndoBuffer.remove(0);
    393394            }
    394395            zoomRedoBuffer.clear();
Note: See TracChangeset for help on using the changeset viewer.