From: Damyan Ivanov Date: Sat, 27 Apr 2019 20:19:37 +0000 (+0300) Subject: SQLiteOpenHelper wrapper doesn't need to implement AutoCloseable X-Git-Tag: v0.10.0~67 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=f27308fd9e4c8c158e64e6a35967b773f0f7e601;p=mobile-ledger.git SQLiteOpenHelper wrapper doesn't need to implement AutoCloseable db life is hand-managed, opened at application start and shut down on application termination --- 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";