Commit b06ac9e
authored
Improvement: Prevent potential resource leak in CoreEvents.java (OFBIZ-13421) (#1241)
Improved: Prevent potential resource leak in CoreEvents.java
(OFBIZ-13421)
Refactor streamFile in CoreEvents.java to use try-with-resources. This
prevents a potential file descriptor resource leak if the file streaming
process throws an Exception.1 parent b149bbe commit b06ac9e
1 file changed
Lines changed: 1 addition & 3 deletions
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
516 | 516 | | |
517 | 517 | | |
518 | 518 | | |
519 | | - | |
520 | | - | |
| 519 | + | |
521 | 520 | | |
522 | | - | |
523 | 521 | | |
524 | 522 | | |
525 | 523 | | |
| |||
0 commit comments