-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[WIP] Use JDK14 switch expressions - checkstyle needs to be updated #6202
Conversation
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.
Next time please consider fixing an issue instead of just code refactorings.
It was a "drive-by-shooting" while I was working on something else. Further, the wish was to keep pull requests small to easy reviewing (@stefan-kolb). Therefore, I spent effort to separate the easy-to-review things from another PR (not yet opened). This helps
|
Blocked by checkstyle/checkstyle#7992. |
|
||
for (i = 0; i < (x - 2); i++) { | ||
sb.append(authors[i]).append("; "); | ||
case 1 -> s = authors[0]; // just no action |
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.
why not use the full power of the switch expressions and write String s = switch (...)
?
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.
IntelliJ did not recommend it ^^. Just submit an update here :)
ETA for the fix September 2020. |
This partially reverts commit 6a14740.
Closed to reduce the noise. |
4eee79a Fix director not showing in MHRAs (#6271) 20c4b5e Update the-journal-of-pain.csl (#6202) 6ba269f Added missing book volume in short-title-note (#6262) 1a11c0f Update harvard-stellenbosch-university.csl (#6256) 6b598e7 Update karstenia.csl (#6242) 38bc5fe APA: Swap priority for periodical page and number (#6255) git-subtree-dir: buildres/csl/csl-styles git-subtree-split: 4eee79a
I applied some IntelliJ suggestions - also includes using JDK14 switch expressions. This causes issues at checkstyle.