Commit 3b597fb5 by Sarath Subramanian

ATLAS-2243: Code improvement suggested by Static code analysis

parent 1e01c01a
...@@ -776,13 +776,13 @@ public final class EntityGraphRetriever { ...@@ -776,13 +776,13 @@ public final class EntityGraphRetriever {
relationship.setCreateTime(new Date(GraphHelper.getCreatedTime(edge))); relationship.setCreateTime(new Date(GraphHelper.getCreatedTime(edge)));
relationship.setUpdateTime(new Date(GraphHelper.getModifiedTime(edge))); relationship.setUpdateTime(new Date(GraphHelper.getModifiedTime(edge)));
Integer version = GraphHelper.getVersion(edge).intValue(); Long version = GraphHelper.getVersion(edge);
if (version == null) { if (version == null) {
version = Integer.valueOf(1); version = Long.valueOf(1L);
} }
relationship.setVersion(version.longValue()); relationship.setVersion(version);
relationship.setStatus(GraphHelper.getEdgeStatus(edge)); relationship.setStatus(GraphHelper.getEdgeStatus(edge));
AtlasVertex end1Vertex = edge.getOutVertex(); AtlasVertex end1Vertex = edge.getOutVertex();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment