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
Issue #3655: Fix NPE in NeedBraces on single line default stmt #3673
Conversation
Looks like git commit message is multi-line, it should be single line. |
Current coverage is 100% (diff: 100%)@@ master #3673 diff @@
=====================================
Files 275 275
Lines 13571 13573 +2
Methods 0 0
Messages 0 0
Branches 3051 3052 +1
=====================================
+ Hits 13571 13573 +2
Misses 0 0
Partials 0 0
|
good, thanks a lot. please do the same fix for "isSingleLineCase" it is not referenced in issue test case, but problem is the same.
|
It is possible:
|
one more exception on case:
exception:
ast:
|
commit was updated and merged in scope of #3682 . Stress testing was done on all projects in checkstyle-tester |
Problem in #3655 was that isSingleLineDefault assumed that default stmt
has slist. This commit fixes this by checking if slist exists.