Commit 51932fe
Inline private field
* chore: inline `ProxyInputStream.exceptionHandler` field
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.
* Inline private constant field ProxyInputStream.exceptionHandler #780
---------
Co-authored-by: Gary Gregory <[email protected]>ProxyInputStream.exceptionHandler (#780)1 parent 28873d1 commit 51932fe
File tree
2 files changed
+4
-11
lines changed- src
- changes
- main/java/org/apache/commons/io/input
2 files changed
+4
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
64 | 66 | | |
65 | 67 | | |
66 | 68 | | |
| |||
Lines changed: 1 addition & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | 27 | | |
30 | 28 | | |
31 | 29 | | |
| |||
102 | 100 | | |
103 | 101 | | |
104 | 102 | | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | 103 | | |
111 | 104 | | |
112 | 105 | | |
| |||
130 | 123 | | |
131 | 124 | | |
132 | 125 | | |
133 | | - | |
134 | 126 | | |
135 | 127 | | |
136 | 128 | | |
| |||
144 | 136 | | |
145 | 137 | | |
146 | 138 | | |
147 | | - | |
148 | 139 | | |
149 | 140 | | |
150 | 141 | | |
| |||
245 | 236 | | |
246 | 237 | | |
247 | 238 | | |
248 | | - | |
| 239 | + | |
249 | 240 | | |
250 | 241 | | |
251 | 242 | | |
| |||
0 commit comments