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
NeedBraces: False Positives for LITERAL_CASE and LITERAL_DEFAULT #4764
Comments
Though we don't specify when acceptable tokens were added in our documentation at http://checkstyle.sourceforge.net/config_blocks.html#NeedBraces , I'm not sure why there is no error specifying the tokens being used weren't acceptable when doing regression with 6.3, but it must be a bug of some kind in old code as there will be an error in 6.4 if it was not part of acceptable. It was probably all part of the same commit that fixed this. |
Fix is merged |
https://checkstyle.org/config_blocks.html#NeedBraces
I expect no violations reported. Based on local testing, the incorrect violations started being reported with Checkstyle 6.4. Please see comment in java test file for list of locally tested versions and the results.
The text was updated successfully, but these errors were encountered: