Skip to content

Commit dfcd417

Browse files
committed
Merge pull request #530 from basho/CLIENTS-521
Fixing call to JDK7+ method to maintain JDK6 Runtime compatibility
2 parents f5a1e1a + be100a0 commit dfcd417

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/com/basho/riak/client/api/RiakClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ public static RiakClient newClient(InetSocketAddress... addresses) throws Unknow
262262
List<RiakNode> nodes = new LinkedList<RiakNode>();
263263
for (InetSocketAddress addy : addresses)
264264
{
265-
builder.withRemoteAddress(addy.getHostString())
265+
builder.withRemoteAddress(addy.getHostName())
266266
.withRemotePort(addy.getPort());
267267
nodes.add(builder.build());
268268
}

0 commit comments

Comments
 (0)