aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-06-15 08:19:19 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-06-15 08:19:19 +0000
commit72b1fd2376ac5f5523b92ee94e0dd33e1a416e8d (patch)
treea9fdf0d154112be192d351d1ffeacb0e58d9c44e
parent45072f0c0338b14c787e33420ab72ed5ba33f700 (diff)
parent28011c0a34a3ede7b8213776c7fd99121e0491c1 (diff)
downloadplatform-compat-72b1fd2376ac5f5523b92ee94e0dd33e1a416e8d.tar.gz
Snap for 8727584 from 28011c0a34a3ede7b8213776c7fd99121e0491c1 to mainline-tzdata3-release
Change-Id: Id2c2171f04a27452b34200e460a20f4a1eb62af5
-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 2c61154..3830ec9 100644
--- a/java/android/compat/testing/Classpaths.java
+++ b/java/android/compat/testing/Classpaths.java
@@ -93,21 +93,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());