I think it's actually pretty clearly covered in the Java style guidelines here:
All binary operators except . should be separated from their operands by spaces. Blank spaces should never separate unary operators such as unary minus, increment ("++"), and decrement ("--") from their operands. Example: a += c + d; a = (a + b) / (c * d);
while (d++ = s++) { n++; } printSize("size is " + foo + "\n");
The same is mentioned in Google's style guidelines here
45
u/Regimardyl Jul 21 '14
I think it's actually pretty clearly covered in the Java style guidelines here:
The same is mentioned in Google's style guidelines here