You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2024/01/15 16:39:17 UTC
(commons-compress) branch master updated: Deprecate ByteUtils.InputStreamByteSupplier
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-compress.git
The following commit(s) were added to refs/heads/master by this push:
new d5a398b8e Deprecate ByteUtils.InputStreamByteSupplier
new 351cf8263 Merge branch 'master' of https://gitbox.apache.org/repos/asf/commons-compress.git
d5a398b8e is described below
commit d5a398b8e5b6c3168976c82077dfce06e40fe542
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Mon Jan 15 11:38:54 2024 -0500
Deprecate ByteUtils.InputStreamByteSupplier
---
src/changes/changes.xml | 1 +
src/main/java/org/apache/commons/compress/utils/ByteUtils.java | 2 ++
2 files changed, 3 insertions(+)
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index c50f04bad..911084c27 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -71,6 +71,7 @@ The <action> type attribute can be add,update,fix,remove.
<action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate IOUtils.read(File, byte[]).</action>
<action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate IOUtils.copyRange(InputStream, long, OutputStream, int).</action>
<action type="fix" issue="COMPRESS-653" dev="ggregory" due-to="Zbynek Vyskovsky, Gary Gregory">ZipArchiveOutputStream multi archive updates metadata in incorrect file #455.</action>
+ <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate ByteUtils.InputStreamByteSupplier.</action>
<!-- ADD -->
<action type="add" dev="ggregory" due-to="Gary Gregory">Add ZipFile.builder(), add ZipFile.Builder, deprecated constructors.</action>
<!-- UPDATE -->
diff --git a/src/main/java/org/apache/commons/compress/utils/ByteUtils.java b/src/main/java/org/apache/commons/compress/utils/ByteUtils.java
index 816f3a345..379f730b6 100644
--- a/src/main/java/org/apache/commons/compress/utils/ByteUtils.java
+++ b/src/main/java/org/apache/commons/compress/utils/ByteUtils.java
@@ -64,7 +64,9 @@ public final class ByteUtils {
* {@link ByteSupplier} based on {@link InputStream}.
*
* @since 1.14
+ * @deprecated Unused
*/
+ @Deprecated
public static class InputStreamByteSupplier implements ByteSupplier {
private final InputStream is;