room/runtime/src/main/java/androidx/room/RoomDatabase.java
public void close() {
        if (isOpen()) {
            try {
                mCloseLock.lock();
                mOpenHelper.close();
            } finally {
                mCloseLock.unlock();
            }
        }
    }
/**
     * Closes the database if it is already open.
     */
Closes the database if it is already open.
Closes the database if it is already open .
public void close() {
        if (isOpen()) {
            try {
                mCloseLock.lock();
                mOpenHelper.close();
            } finally {
                mCloseLock.unlock();
            }
        }
    }
public void close ( ) { if ( isOpen ( ) ) { try { mCloseLock . lock ( ) ; mOpenHelper . close ( ) ; } finally { mCloseLock . unlock ( ) ; } } }
Closes the database if it is already open.
Closes the database if it is already open .