Uploaded image for project: 'Commons IO'
  1. Commons IO
  2. IO-816

UnsynchronizedBufferedInputStream.read(byte[], int, int) does not use buffer

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.15.0
    • None
    • None

    Description

      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` ...

      Attachments

        Activity

          People

            Unassigned Unassigned
            anloth Andreas Loth
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: