Skip to content

Commit 78dc770

Browse files
committed
wrongly format the expression input
1 parent 2b4696c commit 78dc770

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

palantir-java-format/src/test/resources/com/palantir/javaformat/java/testdata/ExpressionSwitch.input

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,15 @@ class ExpressionSwitch {
6363
public void testWithComments(int y) {
6464
int x;
6565
x = switch (y) {
66-
case 1 -> 1;
67-
// after case 1
68-
case 2 -> throw new IllegalArgumentException();
69-
// after case 2
70-
default -> throw new IllegalStateException();
71-
// after default case
72-
};
66+
case 1 ->
67+
1;
68+
// after case 1
69+
case 2 ->
70+
throw new IllegalArgumentException();
71+
// after case 2
72+
default ->
73+
throw new IllegalStateException();
74+
// after default case
75+
};
7376
}
7477
}

0 commit comments

Comments
 (0)