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/03 16:22:29 UTC

[tinkerpop] 04/06: Code formatting 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 20fcff7f390a336b33b601108ed05453efb73360
Author: Stephen Mallette <sp...@genoprime.com>
AuthorDate: Tue Sep 3 11:40:02 2019 -0400

    Code formatting CTR
---
 .../test/java/org/apache/tinkerpop/gremlin/driver/HostTest.java   | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/gremlin-driver/src/test/java/org/apache/tinkerpop/gremlin/driver/HostTest.java b/gremlin-driver/src/test/java/org/apache/tinkerpop/gremlin/driver/HostTest.java
index 38aacd6..321e843 100644
--- a/gremlin-driver/src/test/java/org/apache/tinkerpop/gremlin/driver/HostTest.java
+++ b/gremlin-driver/src/test/java/org/apache/tinkerpop/gremlin/driver/HostTest.java
@@ -67,21 +67,21 @@ public class HostTest {
         PowerMockito.mockStatic(InetAddress.class);
         PowerMockito.when(InetAddress.getAllByName(hostname)).thenReturn(hosts);
 
-        Cluster cluster = Cluster.build().addContactPoint(hostname).create();
+        final Cluster cluster = Cluster.build().addContactPoint(hostname).create();
 
         cluster.init();
 
         assertEquals(addresses.size(), cluster.allHosts().size());
 
         cluster.allHosts().forEach(host -> {
-            String uriHost = host.getHostUri().getHost();
-            String address = host.getAddress().getAddress().getHostAddress();
+            final String uriHost = host.getHostUri().getHost();
+            final String address = host.getAddress().getAddress().getHostAddress();
             assertEquals(address, uriHost);
             assertTrue(addresses.contains(address));
         });
     }
 
-    private InetAddress inetAddress(String hostname, String address) {
+    private InetAddress inetAddress(final String hostname, final String address) {
         try {
             return InetAddress.getByAddress(hostname, InetAddress.getByName(address).getAddress());
         } catch (UnknownHostException ex) {