Changeset 14214 in josm for trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserModel.java
- Timestamp:
- 2018-09-01T15:29:15+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserModel.java
r14143 r14214 245 245 public TagTableModel getTagTableModel(PointInTimeType pointInTimeType) { 246 246 CheckParameterUtil.ensureParameterNotNull(pointInTimeType, "pointInTimeType"); 247 if (pointInTimeType .equals(PointInTimeType.CURRENT_POINT_IN_TIME))247 if (pointInTimeType == PointInTimeType.CURRENT_POINT_IN_TIME) 248 248 return currentTagTableModel; 249 249 else // REFERENCE_POINT_IN_TIME … … 260 260 public DiffTableModel getNodeListTableModel(PointInTimeType pointInTimeType) { 261 261 CheckParameterUtil.ensureParameterNotNull(pointInTimeType, "pointInTimeType"); 262 if (pointInTimeType .equals(PointInTimeType.CURRENT_POINT_IN_TIME))262 if (pointInTimeType == PointInTimeType.CURRENT_POINT_IN_TIME) 263 263 return currentNodeListTableModel; 264 264 else // REFERENCE_POINT_IN_TIME … … 275 275 public DiffTableModel getRelationMemberTableModel(PointInTimeType pointInTimeType) { 276 276 CheckParameterUtil.ensureParameterNotNull(pointInTimeType, "pointInTimeType"); 277 if (pointInTimeType .equals(PointInTimeType.CURRENT_POINT_IN_TIME))277 if (pointInTimeType == PointInTimeType.CURRENT_POINT_IN_TIME) 278 278 return currentRelationMemberTableModel; 279 279 else // REFERENCE_POINT_IN_TIME … … 367 367 public HistoryOsmPrimitive getPointInTime(PointInTimeType type) { 368 368 CheckParameterUtil.ensureParameterNotNull(type, "type"); 369 if (type .equals(PointInTimeType.CURRENT_POINT_IN_TIME))369 if (type == PointInTimeType.CURRENT_POINT_IN_TIME) 370 370 return current; 371 else if (type .equals(PointInTimeType.REFERENCE_POINT_IN_TIME))371 else if (type == PointInTimeType.REFERENCE_POINT_IN_TIME) 372 372 return reference; 373 373
Note:
See TracChangeset
for help on using the changeset viewer.