aboutsummaryrefslogtreecommitdiff
path: root/javatests/com/google/turbine/binder/bytecode/BytecodeBoundClassTest.java
diff options
context:
space:
mode:
authorAdrian Roos <roosa@google.com>2022-12-05 22:24:54 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2022-12-05 22:24:54 +0000
commitd4be1f10b831f4c3774091c74e4b904ec6450c9a (patch)
tree0baa92251e9c2c2d2522d953021138893ae84133 /javatests/com/google/turbine/binder/bytecode/BytecodeBoundClassTest.java
parentdd13ebbd71cedf4a82982319689ec25b0009f77f (diff)
parent210c7d017424c9cf50cdb5fda52ca31febc92a13 (diff)
downloadturbine-d4be1f10b831f4c3774091c74e4b904ec6450c9a.tar.gz
Original change: https://android-review.googlesource.com/c/platform/external/turbine/+/2327873 Change-Id: I6dec4d2861f797e01e4f2fa71e0b001740c03849 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);
}