Skip to content

Commit 7d86f6b

Browse files
Remove warning and stacktrace capture in SQLiteCompiledSql, resource is cleaned up
1 parent c1aed3e commit 7d86f6b

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

android-database-sqlcipher/src/main/java/net/sqlcipher/database/SQLiteCompiledSql.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848

4949
/** the following are for debugging purposes */
5050
private String mSqlStmt = null;
51-
private Throwable mStackTrace = null;
5251

5352
/** when in cache and is in use, this member is set */
5453
private boolean mInUse = false;
@@ -59,7 +58,6 @@
5958
}
6059
mDatabase = db;
6160
mSqlStmt = sql;
62-
mStackTrace = new DatabaseObjectNotClosedException().fillInStackTrace();
6361
this.nHandle = db.mNativeHandle;
6462
compile(sql, true);
6563
}
@@ -145,10 +143,6 @@ protected void finalize() throws Throwable {
145143
if (SQLiteDebug.DEBUG_ACTIVE_CURSOR_FINALIZATION) {
146144
Log.v(TAG, "** warning ** Finalized DbObj (id#" + nStatement + ")");
147145
}
148-
int len = mSqlStmt.length();
149-
Log.w(TAG, "Releasing statement in a finalizer. Please ensure " +
150-
"that you explicitly call close() on your cursor: " +
151-
mSqlStmt.substring(0, (len > 100) ? 100 : len), mStackTrace);
152146
releaseSqlStatement();
153147
} finally {
154148
super.finalize();

0 commit comments

Comments
 (0)