You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@atlas.apache.org by sa...@apache.org on 2017/10/31 00:22:04 UTC
atlas git commit: ATLAS-2243: Code improvement suggested by Static
code analysis
Repository: atlas
Updated Branches:
refs/heads/master 1e01c01af -> 3b597fb5e
ATLAS-2243: Code improvement suggested by Static code analysis
Project: http://git-wip-us.apache.org/repos/asf/atlas/repo
Commit: http://git-wip-us.apache.org/repos/asf/atlas/commit/3b597fb5
Tree: http://git-wip-us.apache.org/repos/asf/atlas/tree/3b597fb5
Diff: http://git-wip-us.apache.org/repos/asf/atlas/diff/3b597fb5
Branch: refs/heads/master
Commit: 3b597fb5e2a48823ff5bc1e7469de534629c52c5
Parents: 1e01c01
Author: Sarath Subramanian <ss...@hortonworks.com>
Authored: Mon Oct 30 17:21:54 2017 -0700
Committer: Sarath Subramanian <ss...@hortonworks.com>
Committed: Mon Oct 30 17:21:54 2017 -0700
----------------------------------------------------------------------
.../atlas/repository/store/graph/v1/EntityGraphRetriever.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/atlas/blob/3b597fb5/repository/src/main/java/org/apache/atlas/repository/store/graph/v1/EntityGraphRetriever.java
----------------------------------------------------------------------
diff --git a/repository/src/main/java/org/apache/atlas/repository/store/graph/v1/EntityGraphRetriever.java b/repository/src/main/java/org/apache/atlas/repository/store/graph/v1/EntityGraphRetriever.java
index 555f335..8cfa913 100644
--- a/repository/src/main/java/org/apache/atlas/repository/store/graph/v1/EntityGraphRetriever.java
+++ b/repository/src/main/java/org/apache/atlas/repository/store/graph/v1/EntityGraphRetriever.java
@@ -776,13 +776,13 @@ public final class EntityGraphRetriever {
relationship.setCreateTime(new Date(GraphHelper.getCreatedTime(edge)));
relationship.setUpdateTime(new Date(GraphHelper.getModifiedTime(edge)));
- Integer version = GraphHelper.getVersion(edge).intValue();
+ Long version = GraphHelper.getVersion(edge);
if (version == null) {
- version = Integer.valueOf(1);
+ version = Long.valueOf(1L);
}
- relationship.setVersion(version.longValue());
+ relationship.setVersion(version);
relationship.setStatus(GraphHelper.getEdgeStatus(edge));
AtlasVertex end1Vertex = edge.getOutVertex();