Releases: palantir/palantir-java-format
Releases · palantir/palantir-java-format
2.30.0
No documented user facing changes
2.29.0
2.28.0
2.27.0
2.26.0
2.25.0
2.24.0
2.23.0
2.22.0
2.21.0
Type | Description | Link |
---|---|---|
Improvement | Break on lambda argument in method chain ## Before this PR Chained calls involving lambda expressions don't line break, which conflicts with checkstyle (at least the gradle-baseline checkstyle config) java<br>class PalantirLambdaInliningPrefersBreak {<br> void foo() {<br> return hello.read(txn -> {<br> doSomeWork();<br> doSomeMoreWork();<br> })<br> .chainedCall(() -> {<br> doSomeWork();<br> });<br> }<br>}<br><br> ## After this PR java<br>class PalantirLambdaInliningPrefersBreak {<br> void foo() {<br> return hello<br> .read(txn -> {<br> doSomeWork();<br> doSomeMoreWork();<br> })<br> .chainedCall(() -> {<br> doSomeWork();<br> });<br> }<br>}<br> ## Possible downsides? 🤷♂️ I've also added a test to show that non-chained lambda calls don't include a line break |
#707 |