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

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/canvec_helper/src/org/openstreetmap/josm/plugins/canvec_helper/CanVecTile.java

    r30495 r30737  
    2525        CanvecLayer layer;
    2626        public boolean can_download = false;
    27         private ArrayList<String> sub_tile_ids = new ArrayList<String>();
     27        private ArrayList<String> sub_tile_ids = new ArrayList<>();
    2828        private boolean zip_scanned = false;
    2929       
    30         private ArrayList<CanVecTile> sub_tiles = new ArrayList<CanVecTile>();
     30        private ArrayList<CanVecTile> sub_tiles = new ArrayList<>();
    3131        private boolean sub_tiles_made = false;
    3232
     
    232232        }
    233233        private void make_sub_tiles(int layer) {
    234                 ArrayList<String> buffer = new ArrayList<String>();
     234                ArrayList<String> buffer = new ArrayList<>();
    235235                Pattern p;
    236236                if (sub_tiles_made) return;
     
    250250                                } else {
    251251                                        sub_tiles.add(new CanVecTile(corda,last_cell,0,"",this.layer,buffer));
    252                                         buffer = new ArrayList<String>();
     252                                        buffer = new ArrayList<>();
    253253                                        buffer.add(m.group(0));
    254254                                }
     
    271271                                } else {
    272272                                        sub_tiles.add(new CanVecTile(corda,cordb,last_cell2,"",this.layer,buffer));
    273                                         buffer = new ArrayList<String>();
     273                                        buffer = new ArrayList<>();
    274274                                        buffer.add(m.group(0));
    275275                                }
  • applications/editors/josm/plugins/canvec_helper/src/org/openstreetmap/josm/plugins/canvec_helper/CanvecLayer.java

    r30495 r30737  
    3636        private int max_zoom = 4;
    3737        public CanvecHelper plugin_self;
    38         private ArrayList<CanVecTile> tiles = new ArrayList<CanVecTile>();
    39         public ArrayList<CanVecTile> downloadable = new ArrayList<CanVecTile>();
    40         public ArrayList<CanVecTile> openable = new ArrayList<CanVecTile>();
     38        private ArrayList<CanVecTile> tiles = new ArrayList<>();
     39        public ArrayList<CanVecTile> downloadable = new ArrayList<>();
     40        public ArrayList<CanVecTile> openable = new ArrayList<>();
    4141
    4242        public CanvecLayer(String name,CanvecHelper self){
     
    5656                        String line;
    5757                        int last_cell = -1;
    58                         ArrayList<String> list = new ArrayList<String>();
     58                        ArrayList<String> list = new ArrayList<>();
    5959                        while ((line = br.readLine()) != null) {
    6060                                Matcher m = p.matcher(line);
     
    6666                                                CanVecTile tile = new CanVecTile(last_cell,"",0,"",this,list);
    6767                                                if (tile.isValid()) tiles.add(tile);
    68                                                 list = new ArrayList<String>();
     68                                                list = new ArrayList<>();
    6969                                                list.add(m.group(0));
    7070                                        }
     
    205205                //long start = System.currentTimeMillis();
    206206                //System.out.println("painting the area covered by "+bounds.toString());
    207                 downloadable = new ArrayList<CanVecTile>();
    208                 openable = new ArrayList<CanVecTile>();
     207                downloadable = new ArrayList<>();
     208                openable = new ArrayList<>();
    209209                // loop over each canvec tile in the db and check bounds.intersects(Bounds)
    210210                g.setColor(Color.red);
Note: See TracChangeset for help on using the changeset viewer.