Java tutorial
//package com.java2s; //License from project: Apache License import android.support.annotation.Nullable; import java.io.Closeable; public class Main { static void closeQuietly(@Nullable Closeable c) { if (c != null) { try { c.close(); } catch (Throwable ignored) { } } } }