Input:
class TestSwitch { enum TestEnum { ONE, TWO } void test(TestEnum e) { switch (e) { case ONE: System.out.println("one"); break; // test comment default: System.out.println("default"); } } }
If I run GJF 1.23.0 on JDK 11 for this input, the formatting is unchanged. But, if I run it on JDK 17 or higher, the indentation of the // test comment
line is changed to match that of default:
. Is this expected behavior? Seems related to f7543b2.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4