Made Bootstrap and ServerBootstrap copy constructors private as suggested

This commit is contained in:
Trustin Lee 2013-01-30 21:55:10 +09:00
parent b1b0319bbe
commit 05d16cd361
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ public final class Bootstrap extends AbstractBootstrap<Bootstrap, Channel> {
public Bootstrap() { }
public Bootstrap(Bootstrap bootstrap) {
private Bootstrap(Bootstrap bootstrap) {
super(bootstrap);
remoteAddress = bootstrap.remoteAddress;
}

View File

@ -61,7 +61,7 @@ public final class ServerBootstrap extends AbstractBootstrap<ServerBootstrap, Se
public ServerBootstrap() { }
public ServerBootstrap(ServerBootstrap bootstrap) {
private ServerBootstrap(ServerBootstrap bootstrap) {
super(bootstrap);
childGroup = bootstrap.childGroup;
childHandler = bootstrap.childHandler;