loginmodules/password/authenticators/jdbc/src/main/java/org/beiter/michael/authn/jaas/loginmodules/password/authenticators/jdbc/DbUtil.java
public static void close(final Connection conn) {
        if (conn != null) {
            try {
                conn.close();
            } catch (SQLException e) {
                final String error = "Error closing JDBC connection. This may indicate a resource leak.";
                LOG.warn(error, e);
            }
        }
    }
public static void close(final Connection conn) {
        if (conn != null) {
            try {
                conn.close();
            } catch (SQLException e) {
                final String error = "Error closing JDBC connection. This may indicate a resource leak.";
                LOG.warn(error, e);
            }
        }
    }
public static void close ( final Connection conn ) { if ( conn != null ) { try { conn . close ( ) ; } catch ( SQLException e ) { final String error = "Error closing JDBC connection. This may indicate a resource leak." ; LOG . warn ( error , e ) ; } } }
Close a {@code Connection} and log any SQLExceptions that occur.

@param conn Connection to close (may be {@code null})
Close a { @code Connection } and log any SQLExceptions that occur .