Here you can find the source of closeQuietly(ResultSet rs)
public static void closeQuietly(ResultSet rs)
//package com.java2s; import java.sql.*; public class Main { /**/*from w w w.j av a2s .c o m*/ * Close a Connection and ignore any errors during closing. */ public static void closeQuietly(Connection conn) { if (conn != null) { try { conn.close(); } catch (SQLException ignore) { } } } /** * Close a Statement and ignore any errors during closing. */ public static void closeQuietly(Statement stmt) { if (stmt != null) { try { stmt.close(); } catch (SQLException ignore) { } } } /** * Close a ResultSet and ignore any errors during closing. */ public static void closeQuietly(ResultSet rs) { if (rs != null) { try { rs.close(); } catch (SQLException ignore) { } } } }