-
Notifications
You must be signed in to change notification settings - Fork 19.9k
style: enable MissingSwitchDefault
in checkstyle
#5176
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
style: enable MissingSwitchDefault
in checkstyle
#5176
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #5176 +/- ##
============================================
- Coverage 38.60% 38.58% -0.03%
Complexity 2378 2378
============================================
Files 516 516
Lines 15391 15403 +12
Branches 2957 2958 +1
============================================
+ Hits 5942 5943 +1
- Misses 9163 9174 +11
Partials 286 286 ☔ View full report in Codecov by Sentry. |
System.out.println("Unexpected value: " + a[mid]); | ||
mid++; | ||
break; |
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.
System.out.println("Unexpected value: " + a[mid]); | |
mid++; | |
break; | |
throw new IllegalArgumentException("Unexpected value: " + a[mid]); |
System.out.println("Unexpected value: " + a[mid]); | ||
mid++; | ||
break; |
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.
System.out.println("Unexpected value: " + a[mid]); | |
mid++; | |
break; | |
throw new IllegalArgumentException("Unexpected value: " + a[mid]); |
// Optional: Handle unexpected characters if needed | ||
System.out.println("Unexpected character: " + c); | ||
return false; |
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.
// Optional: Handle unexpected characters if needed | |
System.out.println("Unexpected character: " + c); | |
return false; | |
throw new IllegalArgumentException("Unexpected character: " + c); |
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.
Please revert all of the non-necessary changes and create a new PR with them.
MissingSwitchDefault
in checkstyleMissingSwitchDefault
in checkstyle
69877ba
to
6072f00
Compare
ok |
related #5119
clang-format -i --style=file path/to/your/file.java