dependency-check-core/src/main/java/org/owasp/dependencycheck/utils/H2DBLock.java
/**
     * Releases the lock on the H2 database.
     */
Releases the lock on the H2 database.
Releases the lock on the H2 database .
public void release() {
        if (lock != null) {
            try {
                lock.release();
                lock = null;
            } catch (IOException ex) {
                LOGGER.trace("Ignorable exception", ex);
            }
        }
        if (file != null) {
            try {
                file.close();
                file = null;
            } catch (IOException ex) {
                LOGGER.trace("Ignorable exception", ex);
            }
        }
        if (lockFile != null && lockFile.isFile() && !lockFile.delete()) {
            LOGGER.error("Lock file '{}' was unable to be deleted. Please manually delete this file.", lockFile.toString());
            lockFile.deleteOnExit();
        }
        lockFile = null;
    }
public void release ( ) { if ( lock != null ) { try { lock . release ( ) ; lock = null ; } catch ( IOException ex ) { LOGGER . trace ( "Ignorable exception" , ex ) ; } } if ( file != null ) { try { file . close ( ) ; file = null ; } catch ( IOException ex ) { LOGGER . trace ( "Ignorable exception" , ex ) ; } } if ( lockFile != null && lockFile . isFile ( ) && ! lockFile . delete ( ) ) { LOGGER . error ( "Lock file '{}' was unable to be deleted. Please manually delete this file." , lockFile . toString ( ) ) ; lockFile . deleteOnExit ( ) ; } lockFile = null ; }
Releases the lock on the H2 database.
Releases the lock on the H2 database .