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

Add support for switch expressions to Resource Leak Checker #5005

Merged
merged 3 commits into from
Jan 10, 2022

Conversation

msridhar
Copy link
Contributor

@msridhar msridhar commented Jan 9, 2022

The only change required was to update temporary variable mappings, like we now do for ternary expressions.

Fixes #4993

@msridhar msridhar requested a review from kelloggm January 9, 2022 21:34
@@ -0,0 +1,180 @@
// @below-java17-jdk-skip-test
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These tests are exactly the same as those in TernaryExpressions, but using switch expressions instead

@msridhar msridhar enabled auto-merge (squash) January 9, 2022 21:36
@msridhar
Copy link
Contributor Author

msridhar commented Jan 9, 2022

FYI @Nargeshdb

kelloggm
kelloggm previously approved these changes Jan 9, 2022
Copy link
Contributor

@kelloggm kelloggm left a comment

Choose a reason for hiding this comment

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

LGTM

@msridhar
Copy link
Contributor Author

msridhar commented Jan 9, 2022

Sorry @kelloggm your review got dismissed because I just moved a file to a different directory

@msridhar msridhar merged commit 3a32eb1 into typetools:master Jan 10, 2022
@msridhar msridhar deleted the rlc-switch-expressions branch January 10, 2022 00:41
wmdietl pushed a commit to eisop/checker-framework that referenced this pull request Feb 1, 2022
…s#5005)

The only change required was to update temporary variable mappings, like we now do for ternary expressions.

Fixes typetools#4993
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.

Support switch expressions in the Resource Leak Checker
2 participants