Changeset 30737 in osm for applications/editors/josm/plugins/lakewalker/src/org/openstreetmap
- Timestamp:
- 2014-10-18T23:07:52+02:00 (10 years ago)
- 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 93 93 Boolean detect_loop = false; 94 94 95 ArrayList<double[]> nodelist = new ArrayList< double[]>();95 ArrayList<double[]> nodelist = new ArrayList<>(); 96 96 97 97 int[] xy = geo_to_xy(lat,lon,this.resolution); … … 255 255 256 256 double[] test_v = nodes.get(0); 257 ArrayList<double[]> reducednodes = new ArrayList< double[]>();257 ArrayList<double[]> reducednodes = new ArrayList<>(); 258 258 259 259 double prox_sq = Math.pow(proximity, 2); … … 362 362 double[] last = nodes.get(nodes.size()-1); 363 363 364 ArrayList<double[]> new_nodes = new ArrayList< double[]>();364 ArrayList<double[]> new_nodes = new ArrayList<>(); 365 365 366 366 double d = 0; … … 391 391 392 392 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<>(); 394 394 395 395 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 46 46 protected boolean active = false; 47 47 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<>(); 50 50 51 51 public LakewalkerAction(String name) { … … 170 170 progressMonitor.beginTask(null, 3); 171 171 try { 172 ArrayList<double[]> nodelist = new ArrayList< double[]>();172 ArrayList<double[]> nodelist = new ArrayList<>(); 173 173 174 174 Lakewalker lw = new Lakewalker(waylen,maxnode,threshold,epsilon,resolution,tilesize,startdir,wmslayer,workingdir); … … 291 291 } 292 292 293 commands = new LinkedList< Command>();294 ways = new ArrayList< Way>();293 commands = new LinkedList<>(); 294 ways = new ArrayList<>(); 295 295 } finally { 296 296 progressMonitor.finishTask(); -
applications/editors/josm/plugins/lakewalker/src/org/openstreetmap/josm/plugins/lakewalker/LakewalkerWMS.java
r23190 r30737 29 29 30 30 // Vector to cache images in memory 31 private List<BufferedImage> images = new Vector< BufferedImage>();31 private List<BufferedImage> images = new Vector<>(); 32 32 // 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<>(); 34 34 35 35 private int resolution;
Note:
See TracChangeset
for help on using the changeset viewer.