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/lakewalker/src/org/openstreetmap/josm/plugins/lakewalker
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/lakewalker/src/org/openstreetmap/josm/plugins/lakewalker/Lakewalker.java

    r26345 r30737  
    9393            Boolean detect_loop = false;
    9494
    95             ArrayList<double[]> nodelist = new ArrayList<double[]>();
     95            ArrayList<double[]> nodelist = new ArrayList<>();
    9696
    9797            int[] xy = geo_to_xy(lat,lon,this.resolution);
     
    255255
    256256        double[] test_v = nodes.get(0);
    257         ArrayList<double[]> reducednodes = new ArrayList<double[]>();
     257        ArrayList<double[]> reducednodes = new ArrayList<>();
    258258
    259259        double prox_sq = Math.pow(proximity, 2);
     
    362362        double[] last = nodes.get(nodes.size()-1);
    363363
    364         ArrayList<double[]> new_nodes = new ArrayList<double[]>();
     364        ArrayList<double[]> new_nodes = new ArrayList<>();
    365365
    366366        double d = 0;
     
    391391
    392392    private ArrayList<double[]> sublist(ArrayList<double[]> l, int i, int f) throws ArrayIndexOutOfBoundsException {
    393         ArrayList<double[]> sub = new ArrayList<double[]>();
     393        ArrayList<double[]> sub = new ArrayList<>();
    394394
    395395        if(f<i || i < 0 || f < 0 || f > l.size()){
  • applications/editors/josm/plugins/lakewalker/src/org/openstreetmap/josm/plugins/lakewalker/LakewalkerAction.java

    r27852 r30737  
    4646    protected boolean active = false;
    4747
    48     protected Collection<Command> commands = new LinkedList<Command>();
    49     protected Collection<Way> ways = new ArrayList<Way>();
     48    protected Collection<Command> commands = new LinkedList<>();
     49    protected Collection<Way> ways = new ArrayList<>();
    5050
    5151    public LakewalkerAction(String name) {
     
    170170        progressMonitor.beginTask(null, 3);
    171171        try {
    172             ArrayList<double[]> nodelist = new ArrayList<double[]>();
     172            ArrayList<double[]> nodelist = new ArrayList<>();
    173173
    174174            Lakewalker lw = new Lakewalker(waylen,maxnode,threshold,epsilon,resolution,tilesize,startdir,wmslayer,workingdir);
     
    291291            }
    292292
    293             commands = new LinkedList<Command>();
    294             ways = new ArrayList<Way>();
     293            commands = new LinkedList<>();
     294            ways = new ArrayList<>();
    295295        } finally {
    296296            progressMonitor.finishTask();
  • applications/editors/josm/plugins/lakewalker/src/org/openstreetmap/josm/plugins/lakewalker/LakewalkerWMS.java

    r23190 r30737  
    2929
    3030    // Vector to cache images in memory
    31     private List<BufferedImage> images = new Vector<BufferedImage>();
     31    private List<BufferedImage> images = new Vector<>();
    3232    // Hashmap to hold the mapping of cached images
    33     private Map<String,Integer> imageindex = new HashMap<String,Integer>();
     33    private Map<String,Integer> imageindex = new HashMap<>();
    3434
    3535    private int resolution;
Note: See TracChangeset for help on using the changeset viewer.