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/09/09 21:46:19 UTC

[tinkerpop] 03/06: finalize some local 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

commit 59f4dd3b3dc2066d1f069d7b2499842acbfe9da8
Author: Stephen Mallette <sp...@genoprime.com>
AuthorDate: Mon Sep 9 14:39:19 2019 -0400

    finalize some local variables CTR
---
 .../src/main/java/org/apache/tinkerpop/gremlin/driver/Connection.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gremlin-driver/src/main/java/org/apache/tinkerpop/gremlin/driver/Connection.java b/gremlin-driver/src/main/java/org/apache/tinkerpop/gremlin/driver/Connection.java
index efa4c57..74a692d 100644
--- a/gremlin-driver/src/main/java/org/apache/tinkerpop/gremlin/driver/Connection.java
+++ b/gremlin-driver/src/main/java/org/apache/tinkerpop/gremlin/driver/Connection.java
@@ -127,11 +127,11 @@ final class Connection {
 
     void validate() throws ConnectionException {
         try {
-            CompletableFuture<ResultSet> future = new CompletableFuture<>();
+            final CompletableFuture<ResultSet> future = new CompletableFuture<>();
             write(cluster.validationRequest().create(), future);
             future.get().all().get();
         } catch (Exception ex) {
-            Throwable rootCause = ExceptionUtils.getRootCause(ex);
+            final Throwable rootCause = ExceptionUtils.getRootCause(ex);
             if (!(rootCause instanceof ResponseException)) {
                 throw new ConnectionException(uri, "Validation failed", rootCause);
             }