From b18984cd107f3442a315adb170be8176ec1d2d88 Mon Sep 17 00:00:00 2001 From: Tiramisu Mokka Date: Mon, 6 Sep 2021 11:56:36 +0200 Subject: [PATCH] describe alternative for ByteStreams#copy --- guava/src/com/google/common/io/ByteStreams.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/guava/src/com/google/common/io/ByteStreams.java b/guava/src/com/google/common/io/ByteStreams.java index dcd0d48221f6..8edc678b5350 100644 --- a/guava/src/com/google/common/io/ByteStreams.java +++ b/guava/src/com/google/common/io/ByteStreams.java @@ -100,6 +100,9 @@ private ByteStreams() {} * Copies all bytes from the input stream to the output stream. Does not close or flush either * stream. * + *

Java 9 users and later: this method should be treated as deprecated; use the + * equivalent {@link InputStream#transferTo} method instead. + * * @param from the input stream to read from * @param to the output stream to write to * @return the number of bytes copied