-
Notifications
You must be signed in to change notification settings - Fork 10
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
Apply AutoCloseableMustBeClosed #1009
Conversation
Generate changelog in
|
@@ -53,21 +54,25 @@ | |||
} | |||
|
|||
@Override | |||
@MustBeClosed |
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.
Perhaps we should disable these on overrides unless the overridden method is also annotated with @MustBeClosed
?
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.
Yeah, that would help avoid some noise as this rolls out, then we can ratchet it up.
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.
fixed by palantir/gradle-baseline#1685
./gradlew compileJava compileTestJava -PerrorProneApply=AutoCloseableMustBeClosed
6b83b29
to
92b072f
Compare
This PR has been automatically marked as stale because it has not been touched in the last 14 days. If you'd like to keep it open, please leave a comment or add the 'long-lived' label, otherwise it'll be closed in 7 days. |
Apply
AutoCloseableMustBeClosed
from palantir/gradle-baseline#1673Before this PR
Methods returning
AutoCloseable
were not marked as@MustBeClosed
After this PR
==COMMIT_MSG==
Methods returning
AutoCloseable
marked as@MustBeClosed
./gradlew clean compileJava compileTestJava -PerrorProneApply=AutoCloseableMustBeClosed
./gradlew format
==COMMIT_MSG==
Possible downsides?