PCPTCE - Parenthesize Conditional Part of Ternary Conditional Expression

According to Sun Code Conventions for Java, if an expression containing a binary operator appears before the ? in the ternary ?: operator, it should be parenthesized.

Wrong

return x >= 0 ? x : -x;

Right

return (x >= 0) ? x : -x;