Skip to content

Releases: palantir/palantir-java-format

2.27.0

26 Sep 12:31
e2746ed
Compare
Choose a tag to compare
Type Description Link
Improvement Use bootstrapping formatter starting from Intellij 2022.2 #798

2.26.0

03 Aug 14:06
76f501c
Compare
Choose a tag to compare
Type Description Link
Improvement Support ea versions of Java #784

2.25.0

07 Jul 12:57
fa57d6d
Compare
Choose a tag to compare
Type Description Link
Fix Fix problems on windows #772

2.24.0

28 Apr 19:30
99388a3
Compare
Choose a tag to compare
Type Description Link
Improvement Publish gradle plugin to gradle plugin portal #731

2.23.0

28 Apr 13:00
8db1fe3
Compare
Choose a tag to compare
Type Description Link
Improvement Fix lambda compactness regression #728

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