diff options
author | Narayan Kamath <narayan@google.com> | 2015-05-07 17:41:07 +0100 |
---|---|---|
committer | Narayan Kamath <narayan@google.com> | 2015-05-07 17:41:07 +0100 |
commit | 9500bd1ffe150e8836ea649ea356c4d1f3a62018 (patch) | |
tree | 3935aa29cb709e8e4701488039d14c02b2cfa04d /dalvik | |
parent | 10ba80d58272b0e767689113b4fe7e84831a42a6 (diff) | |
download | libcore-9500bd1ffe150e8836ea649ea356c4d1f3a62018.zip libcore-9500bd1ffe150e8836ea649ea356c4d1f3a62018.tar.gz libcore-9500bd1ffe150e8836ea649ea356c4d1f3a62018.tar.bz2 |
Remove StaleDexCacheError.
Nobody throws it. This is in preparation for simplifying dex2oat
error handling and ignoring all compiler / verifier errors.
bug: 20888973
Change-Id: I81634ddc07d885b0da0c6c952028ba2032e702c7
Diffstat (limited to 'dalvik')
-rw-r--r-- | dalvik/src/main/java/dalvik/system/DexFile.java | 4 | ||||
-rw-r--r-- | dalvik/src/main/java/dalvik/system/StaleDexCacheError.java | 41 |
2 files changed, 0 insertions, 45 deletions
diff --git a/dalvik/src/main/java/dalvik/system/DexFile.java b/dalvik/src/main/java/dalvik/system/DexFile.java index 79f2912..52d5d8a 100644 --- a/dalvik/src/main/java/dalvik/system/DexFile.java +++ b/dalvik/src/main/java/dalvik/system/DexFile.java @@ -318,8 +318,6 @@ public final class DexFile { * @throws java.io.IOException if fileName is not a valid apk/jar file or * if problems occur while parsing it. * @throws java.lang.NullPointerException if fileName is null. - * @throws dalvik.system.StaleDexCacheError if the optimized dex file - * is stale but exists on a read-only partition. */ public static native boolean isDexOptNeeded(String fileName) throws FileNotFoundException, IOException; @@ -368,8 +366,6 @@ public final class DexFile { * @throws java.io.IOException if fileName is not a valid apk/jar file or * if problems occur while parsing it. * @throws java.lang.NullPointerException if fileName is null. - * @throws dalvik.system.StaleDexCacheError if the optimized dex file - * is stale but exists on a read-only partition. * * @hide */ diff --git a/dalvik/src/main/java/dalvik/system/StaleDexCacheError.java b/dalvik/src/main/java/dalvik/system/StaleDexCacheError.java deleted file mode 100644 index 8bdd86a..0000000 --- a/dalvik/src/main/java/dalvik/system/StaleDexCacheError.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2008 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 dalvik.system; - -/** - * Is thrown when the VM determines that a DEX file's cache is out of date, and - * that there is no way to recreate it. - * - * @hide - */ -public class StaleDexCacheError extends VirtualMachineError { - /** - * Creates a new exception instance and initializes it with default values. - */ - public StaleDexCacheError() { - super(); - } - - /** - * Creates a new exception instance and initializes it with a given message. - * - * @param detailMessage the error message - */ - public StaleDexCacheError(String detailMessage) { - super(detailMessage); - } -} |