github-advanced-security[bot] commented on code in PR #819:
URL: https://github.com/apache/commons-io/pull/819#discussion_r3106741980


##########
src/main/java/org/apache/commons/io/input/BoundedReader.java:
##########
@@ -140,12 +121,18 @@
     /**
      * Resets the target to the latest mark,
      *
-     * @throws IOException If an I/O error occurs while calling the underlying 
reader's reset method
+     * @throws IOException If an I/O error occurs while calling the underlying 
reader's reset method.
      * @see Reader#reset()
      */
     @Override
     public void reset() throws IOException {
         charsRead = markedAt;
-        target.reset();
+        super.reset();
+    }
+
+    @Override
+    public long skip(final long n) throws IOException {
+        charsRead += n;

Review Comment:
   ## Implicit narrowing conversion in compound assignment
   
   Implicit cast of source type long to narrower destination type [int](1).
   
   [Show more 
details](https://github.com/apache/commons-io/security/code-scanning/146)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to