Changeset 29371 in osm for applications/editors/josm/plugins/imagery_offset_db/src/iodb/CalibrationObject.java
- Timestamp:
- 2013-03-18T21:58:17+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/imagery_offset_db/src/iodb/CalibrationObject.java
r28008 r29371 18 18 19 19 public CalibrationObject(OsmPrimitive object) { 20 this(object, getLastUserId(object));20 this(object, 0); 21 21 } 22 22 … … 29 29 } 30 30 31 private static long getLastUserId( OsmPrimitive object ) {32 return object.getUser() == null ? -1 : object.getUser().getId(); // todo?33 }34 35 31 @Override 36 32 public void putServerParams( Map<String, String> map ) { … … 38 34 map.put("object", object instanceof Node ? "node" : "way"); 39 35 map.put("id", String.valueOf(object.getId())); 40 map.put("lastuser", String.valueOf(lastUserId));41 36 } 42 37 38 @Override 39 public String toString() { 40 return "CalibrationObject{" + "object=" + object + ", lastUserId=" + lastUserId + "position=" + position + ", date=" + date + ", author=" + author + ", description=" + description + ", abandonDate=" + abandonDate + '}'; 41 } 43 42 }
Note:
See TracChangeset
for help on using the changeset viewer.
