Changeset 7005 in josm for trunk/src/org/openstreetmap/josm/gui/mappaint/xml/XmlStyleSource.java
- Timestamp:
- 2014-04-26T17:39:23+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/xml/XmlStyleSource.java
r6995 r7005 41 41 public static final String XML_STYLE_MIME_TYPES = "application/xml, text/xml, text/plain; q=0.8, application/zip, application/octet-stream; q=0.5"; 42 42 43 protected final Map<String, IconPrototype> icons = new HashMap< String, IconPrototype>();44 protected final Map<String, LinePrototype> lines = new HashMap< String, LinePrototype>();45 protected final Map<String, LinemodPrototype> modifiers = new HashMap< String, LinemodPrototype>();46 protected final Map<String, AreaPrototype> areas = new HashMap< String, AreaPrototype>();47 protected final List<IconPrototype> iconsList = new LinkedList< IconPrototype>();48 protected final List<LinePrototype> linesList = new LinkedList< LinePrototype>();49 protected final List<LinemodPrototype> modifiersList = new LinkedList< LinemodPrototype>();50 protected final List<AreaPrototype> areasList = new LinkedList< AreaPrototype>();43 protected final Map<String, IconPrototype> icons = new HashMap<>(); 44 protected final Map<String, LinePrototype> lines = new HashMap<>(); 45 protected final Map<String, LinemodPrototype> modifiers = new HashMap<>(); 46 protected final Map<String, AreaPrototype> areas = new HashMap<>(); 47 protected final List<IconPrototype> iconsList = new LinkedList<>(); 48 protected final List<LinePrototype> linesList = new LinkedList<>(); 49 protected final List<LinemodPrototype> modifiersList = new LinkedList<>(); 50 protected final List<AreaPrototype> areasList = new LinkedList<>(); 51 51 52 52 public XmlStyleSource(String url, String name, String shortdescription) { … … 182 182 private void get(OsmPrimitive primitive, boolean closed, WayPrototypesRecord p, Double scale, MultiCascade mc) { 183 183 String lineIdx = null; 184 HashMap<String, LinemodPrototype> overlayMap = new HashMap< String, LinemodPrototype>();184 HashMap<String, LinemodPrototype> overlayMap = new HashMap<>(); 185 185 boolean isNotArea = primitive.isKeyFalse("area"); 186 186 for (String key : primitive.keySet()) { … … 254 254 overlayMap.remove(lineIdx); // do not use overlay if linestyle is from the same rule (example: railway=tram) 255 255 if (!overlayMap.isEmpty()) { 256 List<LinemodPrototype> tmp = new LinkedList< LinemodPrototype>();256 List<LinemodPrototype> tmp = new LinkedList<>(); 257 257 if (p.linemods != null) { 258 258 tmp.addAll(p.linemods);
Note:
See TracChangeset
for help on using the changeset viewer.