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 94dcf5e67 Deprecate unused methods 94dcf5e67 is described below commit 94dcf5e675705c5ccac2efd4e883efe33b4d81ce Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Mon Jan 15 11:42:25 2024 -0500 Deprecate unused methods - Deprecate ByteUtils.fromLittleEndian(InputStream, int) - Deprecate ByteUtils.toLittleEndian(DataOutput, long, int) --- src/changes/changes.xml | 2 ++ src/main/java/org/apache/commons/compress/utils/ByteUtils.java | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/src/changes/changes.xml b/src/changes/changes.xml index e56978460..8d0898977 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -72,6 +72,8 @@ The <action> type attribute can be add,update,fix,remove. <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> + <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate ByteUtils.fromLittleEndian(InputStream, int).</action> + <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate ByteUtils.toLittleEndian(DataOutput, long, int).</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 379f730b6..ac96f06a7 100644 --- a/src/main/java/org/apache/commons/compress/utils/ByteUtils.java +++ b/src/main/java/org/apache/commons/compress/utils/ByteUtils.java @@ -193,7 +193,9 @@ public final class ByteUtils { * @return the number read * @throws IllegalArgumentException if len is bigger than eight * @throws IOException if reading fails or the stream doesn't contain the given number of bytes anymore + * @deprecated Unused */ + @Deprecated public static long fromLittleEndian(final InputStream in, final int length) throws IOException { // somewhat duplicates the ByteSupplier version in order to save the creation of a wrapper object checkReadLength(length); @@ -247,7 +249,9 @@ public final class ByteUtils { * @param value the value to write * @param length the number of bytes to use to represent the value * @throws IOException if writing fails + * @deprecated Unused */ + @Deprecated public static void toLittleEndian(final DataOutput out, final long value, final int length) throws IOException { // somewhat duplicates the ByteConsumer version in order to save the creation of a wrapper object long num = value;