Suppress deprecation of traditional database transactions

This commit is contained in:
M66B 2019-05-30 12:57:57 +02:00
parent 27416553c8
commit 116e48acda
1 changed files with 18 additions and 0 deletions

View File

@ -835,6 +835,24 @@ public abstract class DB extends RoomDatabase {
.build();
}
@Override
@SuppressWarnings("deprecation")
public void beginTransaction() {
super.beginTransaction();
}
@Override
@SuppressWarnings("deprecation")
public void setTransactionSuccessful() {
super.setTransactionSuccessful();
}
@Override
@SuppressWarnings("deprecation")
public void endTransaction() {
super.endTransaction();
}
public static class Converters {
@TypeConverter
public static String[] toStringArray(String value) {