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

Rule simplify_code_using_streams should check for variables that are not effectively final #158

Open
lyxell opened this issue Jul 24, 2022 · 2 comments

Comments

@lyxell
Copy link
Owner

lyxell commented Jul 24, 2022

Since simplify_code_using_streams creates a lambda expression we need to check that the variables referenced in the lambda expression are effectively final.

@lyxell
Copy link
Owner Author

lyxell commented Jul 24, 2022

This applies to simplify_code_using_map_computeifabsent as well

@lyxell
Copy link
Owner Author

lyxell commented Jul 24, 2022

When fixed these rules should be enabled in the compile-maven build step

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

No branches or pull requests

1 participant