aboutsummaryrefslogtreecommitdiff
path: root/javatests/com/google/turbine/binder/bytecode/BytecodeBoundClassTest.java
diff options
context:
space:
mode:
authorAdrian Roos <roosa@google.com>2022-12-05 21:11:42 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2022-12-05 21:11:42 +0000
commit210c7d017424c9cf50cdb5fda52ca31febc92a13 (patch)
tree0baa92251e9c2c2d2522d953021138893ae84133 /javatests/com/google/turbine/binder/bytecode/BytecodeBoundClassTest.java
parent0a1bffd725f80e576b850263ee5ba54d7ecd7c58 (diff)
parent8742e9d19f14650ce3154e48a681476ea4c8fe1d (diff)
downloadturbine-210c7d017424c9cf50cdb5fda52ca31febc92a13.tar.gz
Merge remote-tracking branch 'aosp/upstream-main' into aosp/master am: 1317f29ad0 am: 8742e9d19fandroid-u-beta-1-gpl
Original change: https://android-review.googlesource.com/c/platform/external/turbine/+/2327873 Change-Id: Ied4766e3be049c753596ae8f2f221e2e1a59a7ab Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'javatests/com/google/turbine/binder/bytecode/BytecodeBoundClassTest.java')
-rw-r--r--javatests/com/google/turbine/binder/bytecode/BytecodeBoundClassTest.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/javatests/com/google/turbine/binder/bytecode/BytecodeBoundClassTest.java b/javatests/com/google/turbine/binder/bytecode/BytecodeBoundClassTest.java
index 65d973d..e2d54bd 100644
--- a/javatests/com/google/turbine/binder/bytecode/BytecodeBoundClassTest.java
+++ b/javatests/com/google/turbine/binder/bytecode/BytecodeBoundClassTest.java
@@ -24,7 +24,6 @@ import static com.google.turbine.testing.TestClassPaths.TURBINE_BOOTCLASSPATH;
import static java.util.Objects.requireNonNull;
import com.google.common.collect.Iterables;
-import com.google.common.io.ByteStreams;
import com.google.turbine.binder.bound.TurbineClassValue;
import com.google.turbine.binder.bound.TypeBoundClass;
import com.google.turbine.binder.bound.TypeBoundClass.FieldInfo;
@@ -195,7 +194,7 @@ public class BytecodeBoundClassTest {
private static byte[] toByteArrayOrDie(InputStream is) {
try {
- return ByteStreams.toByteArray(is);
+ return is.readAllBytes();
} catch (IOException e) {
throw new UncheckedIOException(e);
}