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

[josm_plugins] fix Java 7 / unused code warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/DownloadSVGTask.java

    r29854 r30737  
    104104    private void createWay(String svg) {
    105105        String[] SVGpaths = new SVGParser().getClosedPaths(svg);
    106         ArrayList<Double> fitViewBox = new ArrayList<Double>();
    107         ArrayList<ArrayList<EastNorth>> eastNorths = new ArrayList<ArrayList<EastNorth>>();
     106        ArrayList<Double> fitViewBox = new ArrayList<>();
     107        ArrayList<ArrayList<EastNorth>> eastNorths = new ArrayList<>();
    108108        for (int i=0; i< SVGpaths.length; i++) {
    109             ArrayList<EastNorth> eastNorth = new ArrayList<EastNorth>();
     109            ArrayList<EastNorth> eastNorth = new ArrayList<>();
    110110            fitViewBox.add( createNodes(SVGpaths[i], eastNorth) );
    111111            eastNorths.add(eastNorth);
     
    114114        Double min = Collections.min(fitViewBox);
    115115        int bestPath = fitViewBox.indexOf(min);
    116         List<Node> nodeList = new ArrayList<Node>();
     116        List<Node> nodeList = new ArrayList<>();
    117117        for (EastNorth eastNorth : eastNorths.get(bestPath)) {
    118118            nodeList.add(new Node(Main.getProjection().eastNorth2latlon(eastNorth)));
    119119        }
    120120        Way wayToAdd = new Way();
    121         Collection<Command> cmds = new LinkedList<Command>();
     121        Collection<Command> cmds = new LinkedList<>();
    122122        for (Node node : nodeList) {
    123123            cmds.add(new AddCommand(node));
Note: See TracChangeset for help on using the changeset viewer.