Made Bootstrap and ServerBootstrap copy constructors private as suggested
This commit is contained in:
parent
b1b0319bbe
commit
05d16cd361
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user