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 245509b5 Revert "Less verbose"
245509b5 is described below

commit 245509b54c0b10c117004c69d539cecabfe6d840
Author: Gary Gregory <[email protected]>
AuthorDate: Thu Dec 28 11:19:36 2023 -0500

    Revert "Less verbose"
    
    This reverts commit f5056ca63f49a117607acc13584e57d5090960e5.
---
 src/main/java/org/apache/commons/io/input/CountingInputStream.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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 16f60b23..a3c11aa8 100644
--- a/src/main/java/org/apache/commons/io/input/CountingInputStream.java
+++ b/src/main/java/org/apache/commons/io/input/CountingInputStream.java
@@ -141,7 +141,9 @@ public class CountingInputStream extends ProxyInputStream {
      */
     @Override
     public synchronized long skip(final long length) throws IOException {
-        return count += super.skip(length);
+        final long skip = super.skip(length);
+        count += skip;
+        return skip;
     }
 
 }

Reply via email to