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/reltoolbox/src/relcontext/relationfix
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/reltoolbox/src/relcontext/relationfix/AssociatedStreetFixer.java

    r28762 r30737  
    100100
    101101                // fill relation name
    102                 Map<String, Integer> streetNames = new HashMap<String, Integer>();
     102                Map<String, Integer> streetNames = new HashMap<>();
    103103                for (RelationMember m : rel.getMembers())
    104104                        if ("street".equals(m.getRole()) && m.isWay()) {
     
    126126                }
    127127
    128                 List<Command> commandList = new ArrayList<Command>();
     128                List<Command> commandList = new ArrayList<>();
    129129                if (fixed) {
    130130                        commandList.add(new ChangeCommand(source, rel));
  • applications/editors/josm/plugins/reltoolbox/src/relcontext/relationfix/MultipolygonFixer.java

    r30587 r30737  
    5252     */
    5353    protected Relation fixMultipolygonRoles( Relation source ) {
    54         Collection<Way> ways = new ArrayList<Way>();
     54        Collection<Way> ways = new ArrayList<>();
    5555        for( OsmPrimitive p : source.getMemberPrimitives() )
    5656            if( p instanceof Way )
     
    6363        Relation r = new Relation(source);
    6464        boolean fixed = false;
    65         Set<Way> outerWays = new HashSet<Way>();
     65        Set<Way> outerWays = new HashSet<>();
    6666        for( MultipolygonBuilder.JoinedPolygon poly : mpc.outerWays )
    6767            for( Way w : poly.ways )
    6868                outerWays.add(w);
    69         Set<Way> innerWays = new HashSet<Way>();
     69        Set<Way> innerWays = new HashSet<>();
    7070        for( MultipolygonBuilder.JoinedPolygon poly : mpc.innerWays )
    7171            for( Way w : poly.ways )
  • applications/editors/josm/plugins/reltoolbox/src/relcontext/relationfix/RelationFixer.java

    r28703 r30737  
    2323         */
    2424        public RelationFixer(String... types) {
    25             applicableTypes = new ArrayList<String>();
     25            applicableTypes = new ArrayList<>();
    2626                for(String type: types) {
    2727                        applicableTypes.add(type);
Note: See TracChangeset for help on using the changeset viewer.