Changeset 30737 in osm for applications/editors/josm/plugins/reltoolbox/src/relcontext/relationfix
- Timestamp:
- 2014-10-18T23:07:52+02:00 (10 years ago)
- Location:
- applications/editors/josm/plugins/reltoolbox/src/relcontext/relationfix
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/reltoolbox/src/relcontext/relationfix/AssociatedStreetFixer.java
r28762 r30737 100 100 101 101 // fill relation name 102 Map<String, Integer> streetNames = new HashMap< String, Integer>();102 Map<String, Integer> streetNames = new HashMap<>(); 103 103 for (RelationMember m : rel.getMembers()) 104 104 if ("street".equals(m.getRole()) && m.isWay()) { … … 126 126 } 127 127 128 List<Command> commandList = new ArrayList< Command>();128 List<Command> commandList = new ArrayList<>(); 129 129 if (fixed) { 130 130 commandList.add(new ChangeCommand(source, rel)); -
applications/editors/josm/plugins/reltoolbox/src/relcontext/relationfix/MultipolygonFixer.java
r30587 r30737 52 52 */ 53 53 protected Relation fixMultipolygonRoles( Relation source ) { 54 Collection<Way> ways = new ArrayList< Way>();54 Collection<Way> ways = new ArrayList<>(); 55 55 for( OsmPrimitive p : source.getMemberPrimitives() ) 56 56 if( p instanceof Way ) … … 63 63 Relation r = new Relation(source); 64 64 boolean fixed = false; 65 Set<Way> outerWays = new HashSet< Way>();65 Set<Way> outerWays = new HashSet<>(); 66 66 for( MultipolygonBuilder.JoinedPolygon poly : mpc.outerWays ) 67 67 for( Way w : poly.ways ) 68 68 outerWays.add(w); 69 Set<Way> innerWays = new HashSet< Way>();69 Set<Way> innerWays = new HashSet<>(); 70 70 for( MultipolygonBuilder.JoinedPolygon poly : mpc.innerWays ) 71 71 for( Way w : poly.ways ) -
applications/editors/josm/plugins/reltoolbox/src/relcontext/relationfix/RelationFixer.java
r28703 r30737 23 23 */ 24 24 public RelationFixer(String... types) { 25 applicableTypes = new ArrayList< String>();25 applicableTypes = new ArrayList<>(); 26 26 for(String type: types) { 27 27 applicableTypes.add(type);
Note:
See TracChangeset
for help on using the changeset viewer.