I have the following Java method:
private int calculate() {
return (bytes[0] & 0xff) + ((bytes[1] & 0xff) << 8);
}
PMD complains on this code with "UselessParentheses" violation.
I've reviewed operator precentence rules and I still don't see redundant parentheses in that code. Am I missing something?