Skip to content

Inline private field ProxyInputStream.exceptionHandler#780

Merged
garydgregory merged 2 commits intomasterfrom
fix/remove-exception-handler
Sep 5, 2025
Merged

Inline private field ProxyInputStream.exceptionHandler#780
garydgregory merged 2 commits intomasterfrom
fix/remove-exception-handler

Conversation

@ppkarwasz
Copy link
Contributor

The private, final field exceptionHandler was always set to Erase::rethrow and had no way to be changed (no setter provided). By inlining its single usage, handleIOException becomes simpler and its behavior is clearly fixed, with changes only possible through subclassing.

The private, final field `exceptionHandler` was always set to `Erase::rethrow` and had no way to be changed (no setter provided). By inlining its single usage, `handleIOException` becomes simpler and its behavior is clearly fixed, with changes only possible through subclassing.
@garydgregory garydgregory changed the title chore: inline ProxyInputStream.exceptionHandler field Inline field ProxyInputStream.exceptionHandler Sep 5, 2025
@garydgregory garydgregory changed the title Inline field ProxyInputStream.exceptionHandler Inline private field ProxyInputStream.exceptionHandler Sep 5, 2025
@garydgregory garydgregory merged commit 51932fe into master Sep 5, 2025
36 of 38 checks passed
@ppkarwasz ppkarwasz deleted the fix/remove-exception-handler branch September 5, 2025 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments