-
Notifications
You must be signed in to change notification settings - Fork 26.6k
fix: resolve resource leaks using try-with-resources #15874
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 3.3
Are you sure you want to change the base?
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## 3.3 #15874 +/- ##
============================================
- Coverage 60.79% 60.76% -0.04%
- Complexity 11710 11725 +15
============================================
Files 1938 1938
Lines 88692 88683 -9
Branches 13387 13387
============================================
- Hits 53923 53886 -37
- Misses 29243 29261 +18
- Partials 5526 5536 +10
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Update Bzip2.compress() and Bytes.zip() to follow PMC requirements
…o fix-resource-leaks
| return new byte[0]; | ||
| } | ||
|
|
||
| ByteArrayOutputStream out = new ByteArrayOutputStream(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
out should be included in try-with-resources block.
What is the purpose of the change?
fix: resolve resource leaks using try-with-resources #15742