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

Suppress resource leak warning for instantiated Git object #284

Merged
merged 1 commit into from
Jan 17, 2022

Conversation

dbwiddis
Copy link
Contributor

The Git class implements AutoCloseable which triggers warnings that the resource is not closed.

However, the close() method documents that closure of the underlying repo does not occur with this particular usage and would be a no-op. Adding a suppress warning notation helps indicate that we (think we) know what we're (not) doing.

@mathieucarbou mathieucarbou added the in:core MLP core module label Jan 17, 2022
@mathieucarbou mathieucarbou added this to the 4.2 milestone Jan 17, 2022
@mathieucarbou mathieucarbou merged commit 47e353d into mathieucarbou:master Jan 17, 2022
@dbwiddis dbwiddis deleted the gitleak branch January 17, 2022 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in:core MLP core module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants