File tree 1 file changed +0
-3
lines changed
gto-support-db/src/main/java/org/ccci/gto/android/common/db
1 file changed +0
-3
lines changed Original file line number Diff line number Diff line change 1
1
package org.ccci.gto.android.common.db
2
2
3
- import android.annotation.SuppressLint
4
3
import android.database.Cursor
5
4
import android.database.sqlite.SQLiteDatabase
6
5
import androidx.annotation.RestrictTo
@@ -112,9 +111,7 @@ inline fun <reified T : Any> Dao.find(vararg key: Any) = find(T::class.java, *ke
112
111
inline fun <T : Any > Query<T>.get (dao : Dao ) = dao.get(this )
113
112
inline fun Query <* >.getCursor (dao : Dao ) = dao.getCursor(this )
114
113
115
- @SuppressLint(" RestrictedApi" )
116
114
@RestrictTo(RestrictTo .Scope .LIBRARY_GROUP )
117
115
inline fun <reified T : Any > Dao.getService () = getService(T ::class .java)
118
- @SuppressLint(" RestrictedApi" )
119
116
@RestrictTo(RestrictTo .Scope .LIBRARY_GROUP )
120
117
inline fun <reified T : Any > Dao.getService (noinline defaultValue : () -> T ) = getService(T ::class .java, defaultValue)
You can’t perform that action at this time.
0 commit comments