You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2015/03/12 18:42:33 UTC

incubator-tinkerpop git commit: Remove unecessary variable declaration in GryoReader.

Repository: incubator-tinkerpop
Updated Branches:
  refs/heads/master 26c2b99a7 -> c226ea285


Remove unecessary variable declaration in GryoReader.

Just a random AtomicLong - not sure why that was there.


Project: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/commit/c226ea28
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/tree/c226ea28
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/diff/c226ea28

Branch: refs/heads/master
Commit: c226ea28539e56b07afa65101d6d5027541fea41
Parents: 26c2b99
Author: Stephen Mallette <sp...@apache.org>
Authored: Thu Mar 12 13:41:58 2015 -0400
Committer: Stephen Mallette <sp...@apache.org>
Committed: Thu Mar 12 13:41:58 2015 -0400

----------------------------------------------------------------------
 .../apache/tinkerpop/gremlin/structure/io/gryo/GryoReader.java   | 4 ----
 1 file changed, 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/c226ea28/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/gryo/GryoReader.java
----------------------------------------------------------------------
diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/gryo/GryoReader.java b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/gryo/GryoReader.java
index 4d6d33e..d8109a7 100644
--- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/gryo/GryoReader.java
+++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/gryo/GryoReader.java
@@ -44,7 +44,6 @@ import java.util.Iterator;
 import java.util.List;
 import java.util.Map;
 import java.util.UUID;
-import java.util.concurrent.atomic.AtomicLong;
 import java.util.function.Function;
 
 /**
@@ -67,8 +66,6 @@ public class GryoReader implements GraphReader {
 
     private final File tempFile;
 
-    final AtomicLong counter = new AtomicLong(0);
-
     private GryoReader(final File tempFile, final long batchSize,
                        final String vertexIdKey, final String edgeIdKey,
                        final GryoMapper gryoMapper) {
@@ -128,7 +125,6 @@ public class GryoReader implements GraphReader {
 
     @Override
     public void readGraph(final InputStream inputStream, final Graph graphToWriteTo) throws IOException {
-        this.counter.set(0);
         final Input input = new Input(inputStream);
         this.headerReader.read(kryo, input);