package com.nilhcem.droidcontn.core.dagger.module;

import android.app.Application;
import android.database.sqlite.SQLiteOpenHelper;

import com.nilhcem.droidcontn.data.database.DbOpenHelper;
import com.squareup.sqlbrite.BriteDatabase;
import com.squareup.sqlbrite.SqlBrite;

import javax.inject.Singleton;

import dagger.Module;
import dagger.Provides;
import timber.log.Timber;

@Module
public class DatabaseModule {

    static final String TAG = "database";

    @Provides @Singleton SQLiteOpenHelper provideSQLiteOpenHelper(Application application) {
        return new DbOpenHelper(application);
    }

    @Provides @Singleton SqlBrite provideSqlBrite() {
        return SqlBrite.create(message -> Timber.tag(TAG).v(message));
    }

    @Provides @Singleton BriteDatabase provideBriteDatabase(SqlBrite sqlBrite, SQLiteOpenHelper helper) {
        return sqlBrite.wrapDatabaseHelper(helper);
    }
}

@@ -691,19 +691,8 @@
 ate(
-message -%3E 
 Timb
@@ -706,19 +706,11 @@
 TAG)
-.v(message)
+::v
 );%0A 

Replace lambda with a method reference