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 2019/05/20 13:22:00 UTC

[tinkerpop] branch master updated: Final up some variables CTR

This is an automated email from the ASF dual-hosted git repository.

spmallette pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git


The following commit(s) were added to refs/heads/master by this push:
     new 8802cee  Final up some variables CTR
8802cee is described below

commit 8802cee0c7d7c617e3faf57bbff06f35eadf39d7
Author: Stephen Mallette <sp...@genoprime.com>
AuthorDate: Mon May 20 09:21:47 2019 -0400

    Final up some variables CTR
---
 .../tinkerpop/gremlin/console/jsr223/DriverRemoteAcceptor.java | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/gremlin-console/src/main/java/org/apache/tinkerpop/gremlin/console/jsr223/DriverRemoteAcceptor.java b/gremlin-console/src/main/java/org/apache/tinkerpop/gremlin/console/jsr223/DriverRemoteAcceptor.java
index b56835a..b579b4b 100644
--- a/gremlin-console/src/main/java/org/apache/tinkerpop/gremlin/console/jsr223/DriverRemoteAcceptor.java
+++ b/gremlin-console/src/main/java/org/apache/tinkerpop/gremlin/console/jsr223/DriverRemoteAcceptor.java
@@ -37,13 +37,11 @@ import java.io.File;
 import java.io.FileNotFoundException;
 import java.io.IOException;
 import java.util.Arrays;
-import java.util.Collections;
 import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
 import java.util.Optional;
 import java.util.UUID;
-import java.util.concurrent.TimeUnit;
 import java.util.concurrent.TimeoutException;
 import java.util.stream.Stream;
 
@@ -214,13 +212,13 @@ public class DriverRemoteAcceptor implements RemoteAcceptor {
             if (timeout > NO_TIMEOUT)
                 options.timeout(timeout);
 
-            ResultSet rs = this.currentClient.submit(gremlin, options.create());
-            List<Result> results = rs.all().get();
-            Map<String, Object> statusAttributes = rs.statusAttributes().getNow(null);
+            final ResultSet rs = this.currentClient.submit(gremlin, options.create());
+            final List<Result> results = rs.all().get();
+            final Map<String, Object> statusAttributes = rs.statusAttributes().getNow(null);
 
             // Check for and print warnings
             if (null != statusAttributes && statusAttributes.containsKey(Tokens.STATUS_ATTRIBUTE_WARNINGS)) {
-                Object warningAttributeObject = statusAttributes.get(Tokens.STATUS_ATTRIBUTE_WARNINGS);
+                final Object warningAttributeObject = statusAttributes.get(Tokens.STATUS_ATTRIBUTE_WARNINGS);
                 if (warningAttributeObject instanceof List) {
                     for (Object warningListItem : (List<?>)warningAttributeObject)
                         shellEnvironment.errPrintln(String.valueOf(warningListItem));