Skip to content
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

AutoCloseableMustBeClosed doesn't match method overrides #1685

Merged

Conversation

carterkozak
Copy link
Contributor

In most cases interactions occur with the base interface, not
the implementation, so we shouldn't flag implementations of
types we cannot control.

Before this PR

Lots of findings when the check is enabled.

After this PR

==COMMIT_MSG==
AutoCloseableMustBeClosed doesn't match method overrides
==COMMIT_MSG==

Possible downsides?

Might miss some resource leaks, however I expect it to substantially improve the snr for rollout.

@carterkozak carterkozak requested a review from schlosna March 9, 2021 18:20
@changelog-app
Copy link

changelog-app bot commented Mar 9, 2021

Generate changelog in changelog/@unreleased

Type

  • Feature
  • Improvement
  • Fix
  • Break
  • Deprecation
  • Manual task
  • Migration

Description

AutoCloseableMustBeClosed doesn't match method overrides

Check the box to generate changelog(s)

  • Generate changelog entry

@policy-bot policy-bot bot requested a review from ferozco March 9, 2021 18:20
@carterkozak carterkozak removed the request for review from ferozco March 9, 2021 18:20
In most cases interactions occur with the base interface, not
the implementation, so we shouldn't flag implementations of
types we cannot control.
@carterkozak carterkozak force-pushed the ckozak/AutoCloseableMustBeClosed_ignore_override branch from 56e57dd to 1a86657 Compare March 9, 2021 18:24
Copy link
Contributor

@schlosna schlosna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 nice, thanks!

@bulldozer-bot bulldozer-bot bot merged commit f898554 into develop Mar 9, 2021
@bulldozer-bot bulldozer-bot bot deleted the ckozak/AutoCloseableMustBeClosed_ignore_override branch March 9, 2021 18:36
@svc-autorelease
Copy link
Collaborator

Released 3.74.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants