Skip to content

Conversation

@heliang666s
Copy link
Member

What is the purpose of the change?

fix: resolve resource leaks using try-with-resources #15742

@codecov-commenter
Copy link

codecov-commenter commented Dec 15, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 60.76%. Comparing base (7d512b4) to head (b410dfe).
⚠️ Report is 1 commits behind head on 3.3.

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     
Flag Coverage Δ
integration-tests-java21 32.40% <0.00%> (+0.03%) ⬆️
integration-tests-java8 32.53% <0.00%> (+0.08%) ⬆️
samples-tests-java21 31.99% <0.00%> (-0.07%) ⬇️
samples-tests-java8 29.73% <0.00%> (+<0.01%) ⬆️
unit-tests-java11 59.07% <76.47%> (+<0.01%) ⬆️
unit-tests-java17 58.53% <100.00%> (-0.04%) ⬇️
unit-tests-java21 58.55% <100.00%> (-0.02%) ⬇️
unit-tests-java25 58.53% <100.00%> (+<0.01%) ⬆️
unit-tests-java8 59.07% <76.47%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

return new byte[0];
}

ByteArrayOutputStream out = new ByteArrayOutputStream();
Copy link
Contributor

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.

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.

4 participants