-
-
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
Enable SimplifyBooleanReturn #9885
Conversation
seems like something with the braces formatter went wrong |
Or @koppors manual changes. |
These recipes would make results to src/main/java/org/jabref/gui/openoffice/ManageCitationsDialogView.java: |
I think the braces can be removed completly |
} else { | ||
return true; | ||
} | ||
return !(CONJUNCTIONS.contains(word)); |
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.
no braces necessary
return false; | ||
} | ||
return true; | ||
return (viewModel != null) && (!viewModel.failedToGetCitationEntries); |
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.
at least the brace after the && are uncessary
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.
Let's see what checkstyle says... I think, it demands some braces?
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.
I think only in if conditions
src/main/java/org/jabref/gui/openoffice/ManageCitationsDialogView.java
Outdated
Show resolved
Hide resolved
…iew.java Co-authored-by: Christoph <[email protected]>
This enables https://docs.openrewrite.org/recipes/java/cleanup/simplifybooleanreturn
Compulsory checks