The GitHub Actions job "Java CI" on commons-io.git/feat/available-cleanup has 
failed.
Run started by GitHub user ppkarwasz (triggered by ppkarwasz).

Head commit for run:
10c31948db71b620c4b981d3a5a1bda586e37a1a / Piotr P. Karwasz 
<pkarwasz-git...@apache.org>
fix: respect read limit in `BoundedInputStream.available()`

`BoundedInputStream.available()` previously returned the underlying stream’s 
availability without applying the configured read limit. It now caps the 
reported value by the remaining bytes allowed by the bound.

Additional changes:

* Removed the `onMaxLength` call from `available()`, since `available()` does 
not consume data and cannot exceed the maximum count.
* Reworked the `testAvailableAfterClose` and `testReadAfterClose` tests:

  * Old versions relied too heavily on `CharSequenceInputStream`’s specific 
behavior.
  * New parameterized tests cover all three typical cases of the underlying 
stream after close: no-op, return special value, or throw an exception.
* Added a dedicated unit test for the corrected `available()` behavior.

Report URL: https://github.com/apache/commons-io/actions/runs/17493879907

With regards,
GitHub Actions via GitBox

Reply via email to