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/actions/downloadtasks/DownloadReferrersTask.java

    r6973 r7005  
    6262        CheckParameterUtil.ensureParameterNotNull(targetLayer, "targetLayer");
    6363        canceled = false;
    64         this.children = new HashMap<Long, OsmPrimitiveType>();
     64        this.children = new HashMap<>();
    6565        if (children != null) {
    6666            for (OsmPrimitive p: children) {
     
    8585        CheckParameterUtil.ensureParameterNotNull(targetLayer, "targetLayer");
    8686        canceled = false;
    87         this.children = new HashMap<Long, OsmPrimitiveType>();
     87        this.children = new HashMap<>();
    8888        if (children != null) {
    8989            for (Entry<Long, OsmPrimitiveType> entry : children.entrySet()) {
     
    115115        CheckParameterUtil.ensureParameterNotNull(type, "type");
    116116        canceled = false;
    117         this.children = new HashMap<Long, OsmPrimitiveType>();
     117        this.children = new HashMap<>();
    118118        this.children.put(id, type);
    119119        this.targetLayer = targetLayer;
     
    151151            throw new IllegalArgumentException(MessageFormat.format("Cannot download referrers for new primitives (ID {0})", primitiveId.getUniqueId()));
    152152        canceled = false;
    153         this.children = new HashMap<Long, OsmPrimitiveType>();
     153        this.children = new HashMap<>();
    154154        this.children.put(primitiveId.getUniqueId(), primitiveId.getType());
    155155        this.targetLayer = targetLayer;
     
    215215        DataSetMerger merger;
    216216        if (!ways.isEmpty()) {
    217             Set<Node> nodes = new HashSet<Node>();
     217            Set<Node> nodes = new HashSet<>();
    218218            for (Way w: ways) {
    219219                // Ensure each node is only listed once
Note: See TracChangeset for help on using the changeset viewer.