src/java.base/share/classes/java/net/ServerSocket.java
changeset 54743 ba74d2de9a01
parent 54689 b28b7f631301
child 55081 dd321e3596c0
child 57358 f0a1d9760c5e
equal deleted inserted replaced
54742:f7b4471933d3 54743:ba74d2de9a01
    30 import java.lang.reflect.Constructor;
    30 import java.lang.reflect.Constructor;
    31 import java.lang.reflect.InvocationTargetException;
    31 import java.lang.reflect.InvocationTargetException;
    32 import java.nio.channels.ServerSocketChannel;
    32 import java.nio.channels.ServerSocketChannel;
    33 import java.security.AccessController;
    33 import java.security.AccessController;
    34 import java.security.PrivilegedExceptionAction;
    34 import java.security.PrivilegedExceptionAction;
       
    35 import java.util.Objects;
    35 import java.util.Set;
    36 import java.util.Set;
    36 import java.util.Collections;
    37 import java.util.Collections;
    37 
    38 
    38 import jdk.internal.access.JavaNetSocketAccess;
    39 import jdk.internal.access.JavaNetSocketAccess;
    39 import jdk.internal.access.SharedSecrets;
    40 import jdk.internal.access.SharedSecrets;
    79      * @throws     NullPointerException if impl is {@code null}.
    80      * @throws     NullPointerException if impl is {@code null}.
    80      *
    81      *
    81      * @since 12
    82      * @since 12
    82      */
    83      */
    83     protected ServerSocket(SocketImpl impl) {
    84     protected ServerSocket(SocketImpl impl) {
       
    85         Objects.requireNonNull(impl);
    84         this.impl = impl;
    86         this.impl = impl;
    85     }
    87     }
    86 
    88 
    87     /**
    89     /**
    88      * Creates an unbound server socket.
    90      * Creates an unbound server socket.