]> git.ktnx.net Git - mobile-ledger.git/commitdiff
SQLiteOpenHelper wrapper doesn't need to implement AutoCloseable
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sat, 27 Apr 2019 20:19:37 +0000 (23:19 +0300)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sat, 27 Apr 2019 20:19:37 +0000 (23:19 +0300)
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

index a7106961d7ed09a8658b0485fcc68c4e830f2e8d..30b77f9c9a4e006b484022f21431a1dd9ac3880c 100644 (file)
@@ -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";