Skip to content

Releases: palantir/palantir-java-format

2.30.0

25 Apr 12:39
f8896d0
Compare
Choose a tag to compare

No documented user facing changes

2.29.0

06 Apr 15:45
08028c5
Compare
Choose a tag to compare
Type Description Link
Fix Stop using the Save Actions plugin (broken in IntelliJ 2023.1) and use native format on save (requires IntelliJ >=2021.2) #862

2.28.0

11 Nov 14:47
4ec2cdb
Compare
Choose a tag to compare
Type Description Link
Fix Write configuration to IPR file if it exists, as well as the .idea directory, to avoid errors in legacy projects #810

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