Here you can find the source of closeRS(final ResultSet rs)
static void closeRS(final ResultSet rs)
//package com.java2s; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; public class Main { static void closeRS(final ResultSet rs) { try {/*from w w w . j a v a 2s. co m*/ if (rs != null) { rs.close(); } } catch (final SQLException ignore) { // ignored } } static void close(final PreparedStatement ps, final ResultSet rs) { closePS(ps); closeRS(rs); } static void closePS(final PreparedStatement ps) { try { if (ps != null) { ps.close(); } } catch (final SQLException ignore) { // ignored } } }