Fixed missing parentheses in Buff.java ternary cast