palantir / palantir-java-format

A modern, lambda-friendly, 120 character Java formatter.
Apache License 2.0
426 stars 45 forks source link

Handle `final var` lambda variables #926

Closed bwRavencl closed 1 year ago

bwRavencl commented 1 year ago

Backported the following upstream fix of @cushon: google/google-java-format@1fe678942551b446d589c0fe0ad5319ccf17ffa3 Original issue: google/google-java-format#959

Before this PR

Processing lambda functions with arguments declared with final var produces: error: did not generate token "final"

After this PR

Process lambda functions with arguments declared with final var no longer produces an error message.

palantirtech commented 1 year ago

Thanks for your interest in palantir/palantir-java-format, @bwRavencl! Before we can accept your pull request, you need to sign our contributor license agreement - just visit https://cla.palantir.com/ and follow the instructions. Once you sign, I'll automatically update this pull request.

svc-autorelease commented 1 year ago

Released 2.37.0