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

Head commit for run:
33c70b3ceace3a1e42f1e8bf581254097d1e1ac9 / Piotr P. Karwasz 
<[email protected]>
Add `Closeable` to `AbstractOrigin`

This change makes `AbstractOrigin` implement `Closeable` and updates the 
Javadoc of all “getter” methods that return `Closeable` resources. The Javadoc 
now explicitly warns that:

* Closing the returned resource will also close the underlying `AbstractOrigin`.
* Ownership of the underlying resource is transferred to the caller.

### Rationale

* Callers must always close the returned resource. Some implementations create 
a new resource on each call, which must be released explicitly.
* Other implementations return the underlying origin directly, making it 
impossible to guarantee a close-shielded wrapper.
* The primary usage of `AbstractOrigin` is within `AbstractStreamBuilder`, 
whose implementations typically wrap closeable resources.

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

With regards,
GitHub Actions via GitBox

Reply via email to