public static void close(ServerSocket serverSocket) {
        if (serverSocket == null) {
            return;
        }
        try {
            serverSocket.close();
        } catch (IOException e) {
            Logger.getLogger(IOUtil.class).finest("closeResource failed", e);
        }
    }
public static void close ( ServerSocket serverSocket ) { if ( serverSocket == null ) { return ; } try { serverSocket . close ( ) ; } catch ( IOException e ) { Logger . getLogger ( IOUtil . class ) . finest ( "closeResource failed" , e ) ; } }
Quietly attempts to close a {@link ServerSocket}, swallowing any exception.

@param serverSocket server socket to close. If {@code null}, no action is taken.