room/runtime/src/main/java/androidx/room/RoomDatabase.java
@CallSuper
    public void init(@NonNull DatabaseConfiguration configuration) {
        mOpenHelper = createOpenHelper(configuration);
        boolean wal = false;
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
            wal = configuration.journalMode == JournalMode.WRITE_AHEAD_LOGGING;
            mOpenHelper.setWriteAheadLoggingEnabled(wal);
        }
        mCallbacks = configuration.callbacks;
        mAllowMainThreadQueries = configuration.allowMainThreadQueries;
        mWriteAheadLoggingEnabled = wal;
    }
/**
     * Called by {@link Room} when it is initialized.
     *
     * @param configuration The database configuration.
     */
Called by  Room when it is initialized.
@param configuration The database configuration.
Called by Room when it is initialized . @param configuration The database configuration .
@CallSuper
    public void init(@NonNull DatabaseConfiguration configuration) {
        mOpenHelper = createOpenHelper(configuration);
        boolean wal = false;
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
            wal = configuration.journalMode == JournalMode.WRITE_AHEAD_LOGGING;
            mOpenHelper.setWriteAheadLoggingEnabled(wal);
        }
        mCallbacks = configuration.callbacks;
        mAllowMainThreadQueries = configuration.allowMainThreadQueries;
        mWriteAheadLoggingEnabled = wal;
    }
@ CallSuper public void init ( @ NonNull DatabaseConfiguration configuration ) { mOpenHelper = createOpenHelper ( configuration ) ; boolean wal = false ; if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . JELLY_BEAN ) { wal = configuration . journalMode == JournalMode . WRITE_AHEAD_LOGGING ; mOpenHelper . setWriteAheadLoggingEnabled ( wal ) ; } mCallbacks = configuration . callbacks ; mAllowMainThreadQueries = configuration . allowMainThreadQueries ; mWriteAheadLoggingEnabled = wal ; }
Called by {@link Room} when it is initialized.
Called by { @link Room } when it is initialized .