From f27308fd9e4c8c158e64e6a35967b773f0f7e601 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Sat, 27 Apr 2019 23:19:37 +0300 Subject: [PATCH] SQLiteOpenHelper wrapper doesn't need to implement AutoCloseable db life is hand-managed, opened at application start and shut down on application termination --- app/src/main/java/net/ktnx/mobileledger/utils/MLDB.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/net/ktnx/mobileledger/utils/MLDB.java b/app/src/main/java/net/ktnx/mobileledger/utils/MLDB.java index a7106961..30b77f9c 100644 --- a/app/src/main/java/net/ktnx/mobileledger/utils/MLDB.java +++ b/app/src/main/java/net/ktnx/mobileledger/utils/MLDB.java @@ -214,7 +214,7 @@ public final class MLDB { } } -class MobileLedgerDatabase extends SQLiteOpenHelper implements AutoCloseable { +class MobileLedgerDatabase extends SQLiteOpenHelper { private static final String DB_NAME = "MoLe.db"; private static final int LATEST_REVISION = 22; private static final String CREATE_DB_SQL = "create_db"; -- 2.39.5