Skip to content

Releases: palantir/palantir-java-format

2.22.0

13 Apr 10:57
0b8f934
Compare
Choose a tag to compare
Type Description Link
Fix Only apply line break to lambdas with statements

## Before this PR
Previous PR #707 was a little aggressive and inserted line breaks for non-statement lambdas.

## After this PR
Only multi-line lambdas cause a line-break in the method chain.
#708

2.21.0

13 Apr 09:39
668433a
Compare
Choose a tag to compare
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

2.20.0

25 Mar 13:42
61a2b27
Compare
Choose a tag to compare

Automated release, no documented user facing changes

2.19.0

24 Mar 17:57
3f256d6
Compare
Choose a tag to compare
Type Description Link
Fix Handle non-sealed modifier #671

2.18.0

21 Mar 20:49
285fe8e
Compare
Choose a tag to compare
Type Description Link
Improvement bump jackson to 2.13.2 #676

2.17.0

28 Jan 18:58
03c589f
Compare
Choose a tag to compare
Type Description Link
Fix Handle empty implementation version #644

2.16.0

20 Jan 15:18
63e1e47
Compare
Choose a tag to compare
Type Description Link
Fix Fix idea plugin failures due to slf4j references #636

2.15.0

19 Jan 10:13
c4b7ea1
Compare
Choose a tag to compare

Automated release, no documented user facing changes

2.14.0

12 Jan 18:02
ce7ac71
Compare
Choose a tag to compare
Type Description Link
Fix Handle empty format response replacements #622

2.13.0

12 Jan 16:46
e024b0a
Compare
Choose a tag to compare
Type Description Link
Improvement Fix Idea plugin regression self-bootstrapping for jdk17 #620