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