solven-eu / cleanthat

Github App opening automatically cleaning PR
56 stars 16 forks source link

https://errorprone.info/bugpattern/OperatorPrecedence #760

Open blacelle opened 9 months ago

blacelle commented 9 months ago

If existing, a reference to the rule from the external system :

Please also provide code examples before -> after.

After:

boolean d = (a && b) || c;",
boolean e = (a || b) ? c : d;",
int z = (x + y) << 2;";

Before

boolean r = a && b || c;",
boolean e = a || b ? c : d;",
int z = x + y << 2;";

You want also want to implement a mutator by your self: