modules/andes-core/broker/src/main/java/org/wso2/andes/store/rdbms/RDBMSMessageStoreImpl.java
protected void close(ResultSet resultSet, String task) {
        try {
            if (resultSet != null && !resultSet.isClosed()) {
                resultSet.close();
            }
        } catch (SQLException e) {
            log.error("Closing result set failed after " + task, e);
        }
    }
/**
     * closes the result set resources
     *
     * @param resultSet ResultSet
     * @param task      task that was done by the closed result set.
     */
closes the result set resources
@param resultSet ResultSet
@param task      task that was done by the closed result set.
closes the result set resources @param resultSet ResultSet @param task task that was done by the closed result set .
protected void close(ResultSet resultSet, String task) {
        try {
            if (resultSet != null && !resultSet.isClosed()) {
                resultSet.close();
            }
        } catch (SQLException e) {
            log.error("Closing result set failed after " + task, e);
        }
    }
protected void close ( ResultSet resultSet , String task ) { try { if ( resultSet != null && ! resultSet . isClosed ( ) ) { resultSet . close ( ) ; } } catch ( SQLException e ) { log . error ( "Closing result set failed after " + task , e ) ; } }
closes the result set resources
 @param resultSet ResultSet
 @param task      task that was done by the closed result set.
closes the result set resources @param resultSet ResultSet @param task task that was done by the closed result set .