Changeset 30737 in osm for applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/ReconstructPolygonAction.java
- Timestamp:
- 2014-10-18T23:07:52+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/ReconstructPolygonAction.java
r30587 r30737 55 55 public void actionPerformed( ActionEvent e ) { 56 56 Relation r = rel.get(); 57 List<Way> ways = new ArrayList< Way>();57 List<Way> ways = new ArrayList<>(); 58 58 boolean wont = false; 59 59 for( RelationMember m : r.getMembers() ) { … … 81 81 82 82 rel.clear(); 83 List<Way> newSelection = new ArrayList< Way>();84 List<Command> commands = new ArrayList< Command>();83 List<Way> newSelection = new ArrayList<>(); 84 List<Command> commands = new ArrayList<>(); 85 85 Command c = DeleteCommand.delete(Main.main.getEditLayer(), Collections.singleton(r), true, true); 86 86 if( c == null ) … … 92 92 Map<String, String> tags = p.ways.get(0).getKeys(); 93 93 List<OsmPrimitive> relations = p.ways.get(0).getReferrers(); 94 Set<String> noTags = new HashSet< String>(r.keySet());94 Set<String> noTags = new HashSet<>(r.keySet()); 95 95 for( int i = 1; i < p.ways.size(); i++ ) { 96 96 Way w = p.ways.get(i); … … 115 115 if( w.getReferrers().equals(relations) ) { 116 116 // check tags that remain 117 Set<String> keys = new HashSet< String>(w.keySet());117 Set<String> keys = new HashSet<>(w.keySet()); 118 118 keys.removeAll(tags.keySet()); 119 119 keys.removeAll(IRRELEVANT_KEYS);
Note:
See TracChangeset
for help on using the changeset viewer.
