Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
11.3
-
None
-
JDK 14
Description
When running autoformat, concise code like
String s(int i) { return switch (i) { case 1 -> "one"; case 2 -> "two"; default -> throw new UnsupportedOperationException(); }; }
is replaced with
String s(int i) { return switch (i) { case 1 -> "one"; case 2 -> "two"; default -> throw new UnsupportedOperationException(); }; }
which I find harder to read. I have not found a setting to disable this behaviour.