Ignore:
Timestamp:
2014-04-29T02:07:27+02:00 (10 years ago)
Author:
Don-vip
Message:

see #8465 - enable and fix more warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/WireframeMapRenderer.java

    r7005 r7022  
    1212import java.awt.geom.GeneralPath;
    1313import java.util.ArrayList;
    14 import java.util.Arrays;
    1514import java.util.Iterator;
    1615import java.util.List;
     
    185184
    186185        // Display highlighted ways after the other ones (fix #8276)
    187         for (List<Way> specialWays : Arrays.asList(new List[]{untaggedWays, highlightedWays})) {
    188             for (final Way way : specialWays){
    189                 way.accept(this);
    190             }
    191             specialWays.clear();
    192             displaySegments();
    193         }
     186        List<Way> specialWays = new ArrayList<>(untaggedWays);
     187        specialWays.addAll(highlightedWays);
     188        for (final Way way : specialWays){
     189            way.accept(this);
     190        }
     191        specialWays.clear();
     192        displaySegments();
    194193
    195194        for (final OsmPrimitive osm : data.getSelected()) {
Note: See TracChangeset for help on using the changeset viewer.