Commit 995203f
committed
Refactor stream handling
This commit refactors the stream handling by using try-with-resource for opening streams in `ImageLoader` for Cocoa and GTK.1 parent 413426e commit 995203f
File tree
2 files changed
+10
-38
lines changed- bundles/org.eclipse.swt/Eclipse SWT
- cocoa/org/eclipse/swt/graphics
- gtk/org/eclipse/swt/graphics
2 files changed
+10
-38
lines changedLines changed: 5 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
| 171 | + | |
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
179 | | - | |
180 | | - | |
| 178 | + | |
181 | 179 | | |
182 | 180 | | |
183 | 181 | | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | 182 | | |
191 | 183 | | |
192 | 184 | | |
| |||
251 | 243 | | |
252 | 244 | | |
253 | 245 | | |
254 | | - | |
| 246 | + | |
255 | 247 | | |
256 | 248 | | |
257 | 249 | | |
258 | 250 | | |
259 | 251 | | |
260 | 252 | | |
261 | | - | |
262 | | - | |
263 | | - | |
| 253 | + | |
| 254 | + | |
264 | 255 | | |
265 | 256 | | |
266 | 257 | | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | 258 | | |
273 | 259 | | |
274 | 260 | | |
| |||
Lines changed: 5 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
287 | | - | |
| 287 | + | |
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
294 | | - | |
295 | | - | |
296 | | - | |
| 294 | + | |
297 | 295 | | |
298 | 296 | | |
299 | 297 | | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | 298 | | |
307 | 299 | | |
308 | 300 | | |
| |||
604 | 596 | | |
605 | 597 | | |
606 | 598 | | |
607 | | - | |
| 599 | + | |
608 | 600 | | |
609 | 601 | | |
610 | 602 | | |
611 | 603 | | |
612 | 604 | | |
613 | 605 | | |
614 | | - | |
615 | | - | |
616 | | - | |
| 606 | + | |
| 607 | + | |
617 | 608 | | |
618 | 609 | | |
619 | 610 | | |
620 | | - | |
621 | | - | |
622 | | - | |
623 | | - | |
624 | | - | |
625 | 611 | | |
626 | 612 | | |
627 | 613 | | |
| |||
0 commit comments