Ignore:
Timestamp:
2014-10-18T23:07:52+02:00 (10 years ago)
Author:
donvip
Message:

[josm_plugins] fix Java 7 / unused code warnings

Location:
applications/editors/josm/plugins/tracer/src/org/openstreetmap/josm/plugins/tracer
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/tracer/src/org/openstreetmap/josm/plugins/tracer/ConnectWays.java

    r29854 r30737  
    3737     */
    3838    public static Command connect(Way way) {
    39         Map<Way, Way> modifiedWays = new HashMap<Way, Way>();
    40         LinkedList<Command> cmds = new LinkedList<Command>();
     39        Map<Way, Way> modifiedWays = new HashMap<>();
     40        LinkedList<Command> cmds = new LinkedList<>();
    4141        Way newWay = new Way(way);
    4242        for (int i = 0; i < way.getNodesCount() - 1; i++) {
     
    9292     */
    9393    private static List<Command> mergeNodes(Node n1, Node n2, Way way){
    94         List<Command> cmds = new LinkedList<Command>();
     94        List<Command> cmds = new LinkedList<>();
    9595        cmds.add(new MoveCommand(n2,
    9696                 (n1.getEastNorth().getX() - n2.getEastNorth().getX())/2,
  • applications/editors/josm/plugins/tracer/src/org/openstreetmap/josm/plugins/tracer/TracerAction.java

    r29595 r30737  
    102102
    103103    private void traceSync(LatLon pos, ProgressMonitor progressMonitor) {
    104         Collection<Command> commands = new LinkedList<Command>();
     104        Collection<Command> commands = new LinkedList<>();
    105105
    106106        progressMonitor.beginTask(null, 3);
  • applications/editors/josm/plugins/tracer/src/org/openstreetmap/josm/plugins/tracer/TracerServer.java

    r23191 r30737  
    5050        try {
    5151            String content = callServer("trace/simple/" + pos.lat() + ";" + pos.lon());
    52             ArrayList<LatLon> nodelist = new ArrayList<LatLon>();
     52            ArrayList<LatLon> nodelist = new ArrayList<>();
    5353            String[] lines = content.split("\\|");
    5454            for (String line : lines) {
     
    6060            return nodelist;
    6161        } catch (Exception e) {
    62             return new ArrayList<LatLon>();
     62            return new ArrayList<>();
    6363        }
    6464    }
Note: See TracChangeset for help on using the changeset viewer.