diff --git a/OsmAnd-java/src/net/osmand/osm/edit/Entity.java b/OsmAnd-java/src/net/osmand/osm/edit/Entity.java index a5dc91ace2..31e154f76b 100644 --- a/OsmAnd-java/src/net/osmand/osm/edit/Entity.java +++ b/OsmAnd-java/src/net/osmand/osm/edit/Entity.java @@ -104,7 +104,8 @@ public abstract class Entity implements Serializable { private Map tags = null; private final long id; private boolean dataLoaded; - private int modify; + private int modify; + private int version; public static final int MODIFY_UNKNOWN = 0; public static final int MODIFY_DELETED = -1; public static final int MODIFY_MODIFIED = 1; @@ -173,6 +174,14 @@ public abstract class Entity implements Serializable { return tags.get(key); } + public int getVersion() { + return version; + } + + public void setVersion(int version) { + this.version = version; + } + public Map getTags() { if(tags == null){ return Collections.emptyMap();