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-io.git
The following commit(s) were added to refs/heads/master by this push: new ccf663d8 [IO-828] Deprecate CountingInputStream.resetCount() ccf663d8 is described below commit ccf663d8dba0954dcd0975e6104811a848bf4e58 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Wed Dec 27 08:05:34 2023 -0500 [IO-828] Deprecate CountingInputStream.resetCount() --- src/changes/changes.xml | 1 + src/main/java/org/apache/commons/io/input/CountingInputStream.java | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 3adf2202..c7493f81 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -79,6 +79,7 @@ The <action> type attribute can be add,update,fix,remove. <action dev="ggregory" type="fix" due-to="Elliotte Rusty Harold">Add PathMatcher to IOFileFilter class Javadoc #536.</action> <action dev="ggregory" type="fix" issue="IO-781" due-to="Marcono1234">Fix CharSequenceInputStream coding exception handling #537.</action> <action dev="ggregory" type="fix" issue="IO-781" due-to="Marcono1234">Deprecate int CountingInputStream#getCount() in favor of long CountingInputStream#getByteCount().</action> + <action dev="ggregory" type="fix" issue="IO-828" due-to="Elliotte Rusty Harold, Gary Gregory">Deprecate CountingInputStream.resetCount().</action> <!-- Add --> <action dev="ggregory" type="add" due-to="Gary Gregory">Add and use PathUtils.getFileName(Path, Function<Path, R>).</action> <action dev="ggregory" type="add" due-to="Gary Gregory">Add and use PathUtils.getFileNameString().</action> diff --git a/src/main/java/org/apache/commons/io/input/CountingInputStream.java b/src/main/java/org/apache/commons/io/input/CountingInputStream.java index ec262a7b..d0629fd3 100644 --- a/src/main/java/org/apache/commons/io/input/CountingInputStream.java +++ b/src/main/java/org/apache/commons/io/input/CountingInputStream.java @@ -119,7 +119,9 @@ public class CountingInputStream extends ProxyInputStream { * * @return the count previous to resetting * @throws ArithmeticException if the byte count is too large + * @deprecated Use {@link #resetByteCount()}. */ + @Deprecated public int resetCount() { final long result = resetByteCount(); if (result > Integer.MAX_VALUE) {