fix redundant modifier

This commit is contained in:
Simon Willnauer 2017-01-11 15:09:29 +01:00
parent ea0e72f3d9
commit d36fc66af1

View File

@ -335,7 +335,7 @@ public final class RemoteClusterService extends AbstractComponent implements Clo
}));
}
static final InetSocketAddress parseSeedAddress(String remoteHost) {
static InetSocketAddress parseSeedAddress(String remoteHost) {
int portSeparator = remoteHost.lastIndexOf(':'); // in case we have a IPv6 address ie. [::1]:9300
if (portSeparator == -1 || portSeparator == remoteHost.length()) {
throw new IllegalArgumentException("remote hosts need to be configured as [host:port], found [" + remoteHost + "] instead");