Use the clearer parameter names that indicate the address is for Internet connections
This commit is contained in:
parent
788d7e9b8b
commit
64e6c4021d
@ -105,22 +105,22 @@ public abstract class AbstractBootstrap<B extends AbstractBootstrap<?>> {
|
|||||||
/**
|
/**
|
||||||
* @see {@link #localAddress(SocketAddress)}
|
* @see {@link #localAddress(SocketAddress)}
|
||||||
*/
|
*/
|
||||||
public B localAddress(int port) {
|
public B localAddress(int inetPort) {
|
||||||
return localAddress(new InetSocketAddress(port));
|
return localAddress(new InetSocketAddress(inetPort));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see {@link #localAddress(SocketAddress)}
|
* @see {@link #localAddress(SocketAddress)}
|
||||||
*/
|
*/
|
||||||
public B localAddress(String host, int port) {
|
public B localAddress(String inetHost, int inetPort) {
|
||||||
return localAddress(new InetSocketAddress(host, port));
|
return localAddress(new InetSocketAddress(inetHost, inetPort));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see {@link #localAddress(SocketAddress)}
|
* @see {@link #localAddress(SocketAddress)}
|
||||||
*/
|
*/
|
||||||
public B localAddress(InetAddress host, int port) {
|
public B localAddress(InetAddress inetHost, int inetPort) {
|
||||||
return localAddress(new InetSocketAddress(host, port));
|
return localAddress(new InetSocketAddress(inetHost, inetPort));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -51,16 +51,16 @@ public class Bootstrap extends AbstractBootstrap<Bootstrap> {
|
|||||||
/**
|
/**
|
||||||
* @see {@link #remoteAddress(SocketAddress)}
|
* @see {@link #remoteAddress(SocketAddress)}
|
||||||
*/
|
*/
|
||||||
public Bootstrap remoteAddress(String host, int port) {
|
public Bootstrap remoteAddress(String inetHost, int inetPort) {
|
||||||
remoteAddress = new InetSocketAddress(host, port);
|
remoteAddress = new InetSocketAddress(inetHost, inetPort);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see {@link #remoteAddress(SocketAddress)}
|
* @see {@link #remoteAddress(SocketAddress)}
|
||||||
*/
|
*/
|
||||||
public Bootstrap remoteAddress(InetAddress host, int port) {
|
public Bootstrap remoteAddress(InetAddress inetHost, int inetPort) {
|
||||||
remoteAddress = new InetSocketAddress(host, port);
|
remoteAddress = new InetSocketAddress(inetHost, inetPort);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user