summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2012-01-19 19:55:52 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2012-01-19 19:55:52 -0800
commitad979f3de85cde30fa5b5d670e6c9a26f2f344f3 (patch)
treeb669eae3e21d93289012c53b6ade12b3b09afee4
parent4023d86a67f705cccb065240de5068ae2d337bc8 (diff)
parentb815d0f80ae58bc48008186d3919e7c6e51fb43e (diff)
downloadframeworks_base-ad979f3de85cde30fa5b5d670e6c9a26f2f344f3.zip
frameworks_base-ad979f3de85cde30fa5b5d670e6c9a26f2f344f3.tar.gz
frameworks_base-ad979f3de85cde30fa5b5d670e6c9a26f2f344f3.tar.bz2
am b815d0f8: Merge "Remove custom SQLITE_UNCLOSED error code."
* commit 'b815d0f80ae58bc48008186d3919e7c6e51fb43e': Remove custom SQLITE_UNCLOSED error code.
-rw-r--r--core/java/android/database/sqlite/SQLiteUnfinalizedObjectsException.java31
-rw-r--r--core/jni/android_database_SQLiteCommon.cpp3
2 files changed, 0 insertions, 34 deletions
diff --git a/core/java/android/database/sqlite/SQLiteUnfinalizedObjectsException.java b/core/java/android/database/sqlite/SQLiteUnfinalizedObjectsException.java
deleted file mode 100644
index bcf95e2..0000000
--- a/core/java/android/database/sqlite/SQLiteUnfinalizedObjectsException.java
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Copyright (C) 2010 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package android.database.sqlite;
-
-/**
- * Thrown if the database can't be closed because of some un-closed
- * Cursor or SQLiteStatement objects. Could happen when a thread is trying to close
- * the database while another thread still hasn't closed a Cursor on that database.
- * @hide
- */
-public class SQLiteUnfinalizedObjectsException extends SQLiteException {
- public SQLiteUnfinalizedObjectsException() {}
-
- public SQLiteUnfinalizedObjectsException(String error) {
- super(error);
- }
-}
diff --git a/core/jni/android_database_SQLiteCommon.cpp b/core/jni/android_database_SQLiteCommon.cpp
index d5fdb15..a94b9d2 100644
--- a/core/jni/android_database_SQLiteCommon.cpp
+++ b/core/jni/android_database_SQLiteCommon.cpp
@@ -109,9 +109,6 @@ void throw_sqlite3_exception(JNIEnv* env, int errcode,
case SQLITE_MISMATCH:
exceptionClass = "android/database/sqlite/SQLiteDatatypeMismatchException";
break;
- case SQLITE_UNCLOSED:
- exceptionClass = "android/database/sqlite/SQLiteUnfinalizedObjectsException";
- break;
default:
exceptionClass = "android/database/sqlite/SQLiteException";
break;