aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXin Li <delphij@google.com>2023-08-14 15:57:24 -0700
committerXin Li <delphij@google.com>2023-08-14 15:57:24 -0700
commit6da0d87a7ef61fa767112da21dac7ec889aef86a (patch)
treec83d1885f7348846ef06ceec05ee4d489ba30d9d
parent7f48a0f46cb8f0c3c9d3efa36f4c396182212559 (diff)
parent7f2c55e86dbc1308c1ee936e2b7b72987f5fba44 (diff)
downloadplatform-compat-tmp_amf_298295554.tar.gz
Merge Android U (ab/10368041)tmp_amf_298295554
Bug: 291102124 Merged-In: Ifec02cb66397e9d10a91cf919bd97d0d368c18b1 Change-Id: I9b024ae8d416fe0c090d7b009de7a4e6b6bda461
-rw-r--r--java/android/compat/testing/Classpaths.java15
1 files changed, 0 insertions, 15 deletions
diff --git a/java/android/compat/testing/Classpaths.java b/java/android/compat/testing/Classpaths.java
index 5beb7d3..bbc2ab4 100644
--- a/java/android/compat/testing/Classpaths.java
+++ b/java/android/compat/testing/Classpaths.java
@@ -94,21 +94,6 @@ public final class Classpaths {
}
/** Returns classes defined a given jar file on the test device. */
- public static ImmutableSet<ClassDef> getClassDefsFromJar(INativeDevice device,
- String remoteJarPath) throws DeviceNotAvailableException, IOException {
- File jar = null;
- try {
- jar = device.pullFile(remoteJarPath);
- if (jar == null) {
- throw new IllegalStateException("could not pull remote file " + remoteJarPath);
- }
- return getClassDefsFromJar(jar);
- } finally {
- FileUtil.deleteFile(jar);
- }
- }
-
- /** Returns classes defined a given jar file on the test device. */
public static ImmutableSet<ClassDef> getClassDefsFromJar(File jar) throws IOException {
MultiDexContainer<? extends DexBackedDexFile> container =
DexFileFactory.loadDexContainer(jar, Opcodes.getDefault());