public static void closeQuietly(Socket socket) {
    if (socket == null) return;
    try {
      socket.close();
    }
    catch (IOException ex) {
      assert true;  // avoid an empty catch
    }
  }
public static void closeQuietly(Socket socket) {
    if (socket == null) return;
    try {
      socket.close();
    }
    catch (IOException ex) {
      assert true;  
    }
  }
public static void closeQuietly ( Socket socket ) { if ( socket == null ) return ; try { socket . close ( ) ; } catch ( IOException ex ) { assert true ; // avoid an empty catch } }
Closes a socket while suppressing any {@code IOException} that occurs.
@param socket the socket to close
Closes a socket while suppressing any {