Searched refs:closeable (Results 1 – 3 of 3) sorted by relevance
42 public static <T extends AutoCloseable> void close(T closeable) throws Exception { in close() argument43 if (closeable != null) { in close()44 closeable.close(); in close()56 public static <T extends UncheckedCloseable> void close(T closeable) { in close() argument57 if (closeable != null) { in close()58 closeable.close(); in close()68 public static <T extends Closeable> void close(T closeable) throws IOException { in close() argument69 if (closeable != null) { in close()70 closeable.close(); in close()
64 private static void closeQuietly(AutoCloseable closeable) { in closeQuietly() argument65 if (closeable != null) { in closeQuietly()67 closeable.close(); in closeQuietly()
125 private static void closeQuietly(AutoCloseable closeable) { in closeQuietly() argument126 if (closeable != null) { in closeQuietly()128 closeable.close(); in closeQuietly()