Merge "bug:3396894 (HC branch) remove STOPSHIP code" into honeycomb
This commit is contained in:
@@ -416,8 +416,7 @@ public class SQLiteDatabase extends SQLiteClosable {
|
|||||||
private void lock(boolean forced) {
|
private void lock(boolean forced) {
|
||||||
// make sure this method is NOT being called from a 'synchronized' method
|
// make sure this method is NOT being called from a 'synchronized' method
|
||||||
if (Thread.holdsLock(this)) {
|
if (Thread.holdsLock(this)) {
|
||||||
// STOPSHIP change the following line to Log.w()
|
Log.w(TAG, "don't lock() while in a synchronized method");
|
||||||
throw new IllegalStateException("don't lock() while in a synchronized method");
|
|
||||||
}
|
}
|
||||||
verifyDbIsOpen();
|
verifyDbIsOpen();
|
||||||
if (!forced && !mLockingEnabled) return;
|
if (!forced && !mLockingEnabled) return;
|
||||||
|
|||||||
Reference in New Issue
Block a user