Commit 522fab5
committed
Keep an input in the old shape in the switch expression golden
The upstream commit rewrote the input of test1 into the new shape, so
both inputs of the golden that declare a variable with a switch
expression already started from the target form, and the golden
checked re-indentation and stability only. Nothing started from "=", a
line break and the switch, which is what the change moves.
test1's input goes back to that shape, as it was before; its expected
output does not change. A field initialized with a switch expression,
written in the same old shape, is added as well, since no golden
covered a field.1 parent 610278d commit 522fab5
2 files changed
Lines changed: 19 additions & 5 deletions
File tree
- open-java-format/src/test/resources/com/palantir/javaformat/java/testdata
Lines changed: 13 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
26 | 33 | | |
27 | 34 | | |
28 | 35 | | |
| |||
43 | 50 | | |
44 | 51 | | |
45 | 52 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
51 | 59 | | |
52 | 60 | | |
53 | 61 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
31 | 37 | | |
32 | 38 | | |
33 | 39 | | |
| |||
0 commit comments