equal
deleted
inserted
replaced
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. |