Ignore:
Timestamp:
2014-04-26T17:39:23+02:00 (10 years ago)
Author:
Don-vip
Message:

see #8465 - use diamond operator where applicable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/mappaint/xml/XmlStyleSource.java

    r6995 r7005  
    4141    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";
    4242
    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<>();
    5151
    5252    public XmlStyleSource(String url, String name, String shortdescription) {
     
    182182    private void get(OsmPrimitive primitive, boolean closed, WayPrototypesRecord p, Double scale, MultiCascade mc) {
    183183        String lineIdx = null;
    184         HashMap<String, LinemodPrototype> overlayMap = new HashMap<String, LinemodPrototype>();
     184        HashMap<String, LinemodPrototype> overlayMap = new HashMap<>();
    185185        boolean isNotArea = primitive.isKeyFalse("area");
    186186        for (String key : primitive.keySet()) {
     
    254254        overlayMap.remove(lineIdx); // do not use overlay if linestyle is from the same rule (example: railway=tram)
    255255        if (!overlayMap.isEmpty()) {
    256             List<LinemodPrototype> tmp = new LinkedList<LinemodPrototype>();
     256            List<LinemodPrototype> tmp = new LinkedList<>();
    257257            if (p.linemods != null) {
    258258                tmp.addAll(p.linemods);
Note: See TracChangeset for help on using the changeset viewer.