8213210: Change ServerSocket(SocketImpl impl) constructor to protected access
Reviewed-by: alanb, chegar
This commit is contained in:
parent
58a340bcb1
commit
cb73851579
@ -76,10 +76,15 @@ class ServerSocket implements java.io.Closeable {
|
|||||||
private boolean oldImpl = false;
|
private boolean oldImpl = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Package-private constructor to create a ServerSocket associated with
|
* Creates a server socket with a user-specified {@code SocketImpl}.
|
||||||
* the given SocketImpl.
|
*
|
||||||
|
* @param impl an instance of a SocketImpl to use on the ServerSocket.
|
||||||
|
*
|
||||||
|
* @throws NullPointerException if impl is {@code null}.
|
||||||
|
*
|
||||||
|
* @since 12
|
||||||
*/
|
*/
|
||||||
ServerSocket(SocketImpl impl) {
|
protected ServerSocket(SocketImpl impl) {
|
||||||
this.impl = impl;
|
this.impl = impl;
|
||||||
impl.setServerSocket(this);
|
impl.setServerSocket(this);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user