Closed romani closed 2 months ago
This was recently fixed in https://github.com/google/google-java-format/commit/f7543b2a7d3b9c5b8214b33e8762e9550f5ab20f. That change will be included in the next release of the formatter.
After that change, it emits:
public class Test {
void method(int i, int j, boolean cond) {
while (true) {
switch (i) {
case 0: // no problem
case 1:
i++;
break;
case 2:
i++;
/*fall through*/ case 3:
i++;
break;
}
}
}
}
diff:
result file is weirdly formatted for
case 3
: