From efa39a0eb0859b223ed1cb5b265fc1c8885d6a80 Mon Sep 17 00:00:00 2001 From: Simon Willnauer Date: Mon, 24 Aug 2015 15:13:13 +0200 Subject: [PATCH] [DOCS] Fix Java API TransportClient example --- docs/java-api/client.asciidoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/java-api/client.asciidoc b/docs/java-api/client.asciidoc index 4a747b70782..cfc45b7bc4b 100644 --- a/docs/java-api/client.asciidoc +++ b/docs/java-api/client.asciidoc @@ -152,8 +152,8 @@ be "two hop" operations). // on startup Client client = TransportClient.builder().build() - .addTransportAddress(new InetSocketTransportAddress("host1", 9300)) - .addTransportAddress(new InetSocketTransportAddress("host2", 9300)); + .addTransportAddress(new InetSocketTransportAddress(InetAddress.getByName("host1"), 9300)) + .addTransportAddress(new InetSocketTransportAddress(InetAddress.getByName("host2"), 9300)); // on shutdown