Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.github.joschi.jersey.util;
 
Utility methods for java.io.Closeable objects.
 
 public final class Closables {
    private Closables() {
    }
    public static void closeQuietly(final Closeable closeable) {
        if (closeable == null) {
            return;
        }
        try {
            closeable.close();
        } catch (IOException e) {
            // Swallow exception
        }
    }
New to GrepCode? Check out our FAQ X