Skip to content
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

Remove AvoidInlineConditionals from sun_checks.xml #6470

Vampire opened this issue Feb 24, 2019 · 1 comment


None yet
2 participants
Copy link

commented Feb 24, 2019

Maybe I'm blind, but where does the Sun style guide forbid the ternary operator?
The sole mention I find in is, that the condition should be parenthesized if it contains a binary operator.

Rationale: Some developers find inline conditionals hard to read, so their employer's coding standards forbid them.


This comment has been minimized.

Copy link

commented Mar 3, 2019
ternary operator is completely ok by Sun style, at least in its latest form.

I do not see "Sun" in our documentation for this Check.
But I see it in config -

Check should be removed from config.

@romani romani added the approved label Mar 3, 2019

@romani romani changed the title AvoidInlineConditionals in sun style? Remove AvoidInlineConditionals from sun_checks.xml Mar 3, 2019

Vampire added a commit to Vampire/checkstyle that referenced this issue Mar 7, 2019

@romani romani closed this in #6524 Mar 8, 2019

romani added a commit that referenced this issue Mar 8, 2019

@romani romani added the bug label Mar 8, 2019

@romani romani added this to the 8.19 milestone Mar 8, 2019

Vantuz added a commit to Vantuz/checkstyle that referenced this issue Apr 3, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.