diff --git a/transport/src/main/java/io/netty/bootstrap/AbstractBootstrap.java b/transport/src/main/java/io/netty/bootstrap/AbstractBootstrap.java index b8c654f7a5..14cbaf6d57 100644 --- a/transport/src/main/java/io/netty/bootstrap/AbstractBootstrap.java +++ b/transport/src/main/java/io/netty/bootstrap/AbstractBootstrap.java @@ -105,22 +105,22 @@ public abstract class AbstractBootstrap> { /** * @see {@link #localAddress(SocketAddress)} */ - public B localAddress(int port) { - return localAddress(new InetSocketAddress(port)); + public B localAddress(int inetPort) { + return localAddress(new InetSocketAddress(inetPort)); } /** * @see {@link #localAddress(SocketAddress)} */ - public B localAddress(String host, int port) { - return localAddress(new InetSocketAddress(host, port)); + public B localAddress(String inetHost, int inetPort) { + return localAddress(new InetSocketAddress(inetHost, inetPort)); } /** * @see {@link #localAddress(SocketAddress)} */ - public B localAddress(InetAddress host, int port) { - return localAddress(new InetSocketAddress(host, port)); + public B localAddress(InetAddress inetHost, int inetPort) { + return localAddress(new InetSocketAddress(inetHost, inetPort)); } /** diff --git a/transport/src/main/java/io/netty/bootstrap/Bootstrap.java b/transport/src/main/java/io/netty/bootstrap/Bootstrap.java index 8a163a9adf..69f01524a2 100644 --- a/transport/src/main/java/io/netty/bootstrap/Bootstrap.java +++ b/transport/src/main/java/io/netty/bootstrap/Bootstrap.java @@ -51,16 +51,16 @@ public class Bootstrap extends AbstractBootstrap { /** * @see {@link #remoteAddress(SocketAddress)} */ - public Bootstrap remoteAddress(String host, int port) { - remoteAddress = new InetSocketAddress(host, port); + public Bootstrap remoteAddress(String inetHost, int inetPort) { + remoteAddress = new InetSocketAddress(inetHost, inetPort); return this; } /** * @see {@link #remoteAddress(SocketAddress)} */ - public Bootstrap remoteAddress(InetAddress host, int port) { - remoteAddress = new InetSocketAddress(host, port); + public Bootstrap remoteAddress(InetAddress inetHost, int inetPort) { + remoteAddress = new InetSocketAddress(inetHost, inetPort); return this; }