You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[java] UselessParentheses: False positive in ternary else expression #6274
Mm yes maybe we could consider the parentheses in the next to last line to be clarifying too. This would be consistent with how we treat the last line.
changed the title [-][java] `UselessParentheses` in ternary else expression[/-][+][java] UselessParentheses: False positive in ternary else expression[/+]on Jan 16, 2026
Activity
oowekyala commentedon Nov 27, 2025
Mm yes maybe we could consider the parentheses in the next to last line to be clarifying too. This would be consistent with how we treat the last line.
[-][java] `UselessParentheses` in ternary else expression[/-][+][java] UselessParentheses: False positive in ternary else expression[/+][java] Fix pmd#6274: UselessParentheses treats ternary else-branch pa…