Changeset 14543 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2018-12-10T00:06:45+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/AbstractReader.java
r14535 r14543 609 609 } 610 610 611 @SuppressWarnings("unchecked") 612 private <T extends OsmPrimitive> T buildPrimitive(PrimitiveData pd) { 611 private OsmPrimitive buildPrimitive(PrimitiveData pd) { 613 612 OsmPrimitive p; 614 613 if (pd.getUniqueId() < AbstractPrimitive.currentUniqueId()) { … … 620 619 p.load(pd); 621 620 externalIdMap.put(pd.getPrimitiveId(), p); 622 return (T)p;621 return p; 623 622 } 624 623 625 624 private Node addNode(NodeData nd, NodeReader nodeReader) throws IllegalDataException { 626 Node n = buildPrimitive(nd);625 Node n = (Node) buildPrimitive(nd); 627 626 nodeReader.accept(n); 628 627 return n; … … 672 671 WayData wd = new WayData(0); 673 672 commonReader.accept(wd); 674 Way w = buildPrimitive(wd);673 Way w = (Way) buildPrimitive(wd); 675 674 676 675 Collection<Long> nodeIds = new ArrayList<>(); … … 687 686 RelationData rd = new RelationData(0); 688 687 commonReader.accept(rd); 689 Relation r = buildPrimitive(rd);688 Relation r = (Relation) buildPrimitive(rd); 690 689 691 690 Collection<RelationMemberData> members = new ArrayList<>();
Note:
See TracChangeset
for help on using the changeset viewer.