Ignore:
Timestamp:
2015-06-20T23:42:21+02:00 (11 years ago)
Author:
Don-vip
Message:

checkstyle: enable relevant whitespace checks and fix them

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/DataSetMerger.java

    r8509 r8510  
    141141
    142142    protected void fixIncomplete(Way other) {
    143         Way myWay = (Way)getMergeTarget(other);
     143        Way myWay = (Way) getMergeTarget(other);
    144144        if (myWay == null)
    145145            throw new RuntimeException(tr("Missing merge target for way with id {0}", other.getUniqueId()));
     
    174174        do {
    175175            flag = false;
    176             for (Iterator<OsmPrimitive> it = objectsToDelete.iterator();it.hasNext();) {
     176            for (Iterator<OsmPrimitive> it = objectsToDelete.iterator(); it.hasNext();) {
    177177                OsmPrimitive target = it.next();
    178178                OsmPrimitive source = sourceDataSet.getPrimitiveById(target.getPrimitiveId());
     
    234234     */
    235235    private void mergeNodeList(Way source) {
    236         Way target = (Way)getMergeTarget(source);
     236        Way target = (Way) getMergeTarget(source);
    237237        if (target == null)
    238238            throw new IllegalStateException(tr("Missing merge target for way with id {0}", source.getUniqueId()));
     
    240240        List<Node> newNodes = new ArrayList<>(source.getNodesCount());
    241241        for (Node sourceNode : source.getNodes()) {
    242             Node targetNode = (Node)getMergeTarget(sourceNode);
     242            Node targetNode = (Node) getMergeTarget(sourceNode);
    243243            if (targetNode != null) {
    244244                newNodes.add(targetNode);
     
    363363            // this have to be resolved manually.
    364364            //
    365             addConflict(target,source);
     365            addConflict(target, source);
    366366        } else if (!target.hasEqualSemanticAttributes(source)) {
    367367            // target is modified and is not semantically equal with source. Can't automatically
    368368            // resolve the differences
    369369            // =>  create a conflict
    370             addConflict(target,source);
     370            addConflict(target, source);
    371371        } else {
    372372            // clone from other. mergeFrom will mainly copy
Note: See TracChangeset for help on using the changeset viewer.