Java tutorial
//package com.java2s; import java.io.Closeable; import java.io.IOException; import java.net.Socket; public class Main { public static void closeQuietly(Closeable paramCloseable) { if (paramCloseable != null) ; try { paramCloseable.close(); return; } catch (IOException localIOException) { } } public static void closeQuietly(Socket paramSocket) { if (paramSocket != null) ; try { paramSocket.close(); return; } catch (Exception localException) { } } }