Changeset 35465 in osm


Ignore:
Timestamp:
2020-05-21T06:56:55+02:00 (4 years ago)
Author:
gerdp
Message:

replace tab characters

Location:
applications/editors/josm/plugins
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/gpx/ElevationProfile.java

    r35444 r35465  
    197197        importantWayPoints[WAYPOINT_START] = wp;
    198198        if(wp.getDate() != null)
    199                 this.start = wp.getDate();
     199            this.start = wp.getDate();
    200200    }
    201201
     
    206206        importantWayPoints[WAYPOINT_END] = wp;
    207207        if(wp.getDate() != null)
    208                 this.end = wp.getDate();
     208            this.end = wp.getDate();
    209209    }
    210210
  • applications/editors/josm/plugins/undelete/src/org/openstreetmap/josm/plugins/undelete/UndeleteAction.java

    r35398 r35465  
    5959        private Set<OsmPrimitive> restored;
    6060
    61                 private Set<PrimitiveId> missingPrimitives;
    62 
    63                 private Worker(OsmPrimitive parent, OsmDataLayer layer, List<PrimitiveId> ids, Set<OsmPrimitive> restored,
    64                                 HistoryLoadTask task) {
    65                         this.parent = parent;
    66                         this.layer = layer;
    67                         this.ids = ids;
    68                         this.restored = restored;
    69                         this.missingPrimitives = task.getMissingPrimitives();
    70                 }
     61        private Set<PrimitiveId> missingPrimitives;
     62
     63        private Worker(OsmPrimitive parent, OsmDataLayer layer, List<PrimitiveId> ids, Set<OsmPrimitive> restored,
     64                HistoryLoadTask task) {
     65            this.parent = parent;
     66            this.layer = layer;
     67            this.ids = ids;
     68            this.restored = restored;
     69            this.missingPrimitives = task.getMissingPrimitives();
     70        }
    7171
    7272        @Override
     
    7474            List<Node> nodes = new ArrayList<>();
    7575            for (PrimitiveId pid : ids) {
    76                                 if (missingPrimitives == null || missingPrimitives.contains(pid)) {
    77                                         continue;
    78                                 }
     76                if (missingPrimitives == null || missingPrimitives.contains(pid)) {
     77                    continue;
     78                }
    7979
    8080                OsmPrimitive primitive = layer.data.getPrimitiveById(pid);
     
    8686                        History h = HistoryDataSet.getInstance().getHistory(id, type);
    8787
    88                                                 if (h == null) {
    89                                                         Logging.warn("Cannot find history for " + type + " " + id);
    90                                                         return;
    91                                                 }
     88                        if (h == null) {
     89                            Logging.warn("Cannot find history for " + type + " " + id);
     90                            return;
     91                        }
    9292
    9393                        HistoryOsmPrimitive hPrimitive1 = h.getLatest();
Note: See TracChangeset for help on using the changeset viewer.