Here you can find the source of close(Closeable closeable, Logger logger)
public static void close(Closeable closeable, Logger logger)
//package com.java2s; //License from project: Apache License import org.slf4j.Logger; import java.io.Closeable; import java.io.IOException; public class Main { public static void close(Closeable closeable, Logger logger) { if (closeable == null) { return; }// ww w .j a v a 2 s.c om try { closeable.close(); } catch (IOException e) { logger.error("Error closing closeable", e); } } }