modules/andes-core/broker/src/main/java/org/wso2/andes/store/rdbms/RDBMSMessageStoreImpl.java
protected void close(Connection connection, String task) {
        try {
            if (connection != null && !connection.isClosed()) {
                connection.close();
            }
        } catch (SQLException e) {
            log.error("Failed to close connection after " + task, e);
        }

    }
/**
     * Closes the provided connection if it is open. on failure log the error;
     *
     * @param connection Connection
     * @param task       task that was done before closing
     */
Closes the provided connection if it is open. on failure log the error;
@param connection Connection
@param task       task that was done before closing
Closes the provided connection if it is open . on failure log the error ; @param connection Connection @param task task that was done before closing
protected void close(Connection connection, String task) {
        try {
            if (connection != null && !connection.isClosed()) {
                connection.close();
            }
        } catch (SQLException e) {
            log.error("Failed to close connection after " + task, e);
        }
    }
protected void close ( Connection connection , String task ) { try { if ( connection != null && ! connection . isClosed ( ) ) { connection . close ( ) ; } } catch ( SQLException e ) { log . error ( "Failed to close connection after " + task , e ) ; } }
Closes the provided connection if it is open.
Closes the provided connection if it is open .