Commit 95c738a
committed
Cover two more text blocks that settled only on a second run
A text block that is a method argument with more arguments after it,
and a text block in each branch of a ternary, came out of one run at one
indentation and out of the next at another. The inputs come from
google/google-java-format#805 and google/google-java-format#1378, where
they show other symptoms; the first is also the shape of
java/lang/Module.java, the one JDK 21 file the fixed point changes.
With the string wrapping pass run to a fixed point, one run gives the
second result; without it, both new goldens fail (#34).1 parent e2c90fd commit 95c738a
4 files changed
Lines changed: 37 additions & 0 deletions
File tree
- open-java-format/src/test/resources/com/palantir/javaformat/java/testdata
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
0 commit comments