You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Andreas Loth (Jira)" <ji...@apache.org> on 2023/10/12 15:51:00 UTC

[jira] [Created] (IO-816) UnsynchronizedBufferedInputStream.read(byte[], int, int) does not use buffer

Andreas Loth created IO-816:
-------------------------------

             Summary: UnsynchronizedBufferedInputStream.read(byte[], int, int) does not use buffer
                 Key: IO-816
                 URL: https://issues.apache.org/jira/browse/IO-816
             Project: Commons IO
          Issue Type: Bug
            Reporter: Andreas Loth


Commit bdb9f8b9095004703666675591c3c3de30e7c03a renamed the field `buf` to `buffer`. This causes name shadowing in `UnsynchronizedBufferedInputStream.read(byte[], int, int)`: the field buffer is shadowed by the parameter `buffer`.

I cannot see any usage of the field `buffer` in the whole method.

Also the test class `UnsynchronizedBufferedInputStreamTest` seems to largely test `BufferedInputStream` ...



--
This message was sent by Atlassian Jira
(v8.20.10#820010)