From 7d16600ef7f1f884a45633c21680dad197bbaafd Mon Sep 17 00:00:00 2001 From: Liam Miller-Cushon Date: Mon, 15 Aug 2022 11:24:00 -0700 Subject: Use `InputStream#readAllBytes` instead of `ByteStreams#toByteArray` PiperOrigin-RevId: 467718127 --- .../com/google/turbine/binder/bytecode/BytecodeBoundClassTest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'javatests/com/google/turbine/binder/bytecode/BytecodeBoundClassTest.java') 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); } -- cgit v1.2.3