palantir-java-format icon indicating copy to clipboard operation
palantir-java-format copied to clipboard

A modern, lambda-friendly, 120 character Java formatter.

Results 97 palantir-java-format issues
Sort by recently updated
recently updated
newest added

## What happened? We try to inline the prefix of initializers for assignments / declarations. This can sometimes produce uglier code that doesn't even save space (takes up the same...

bug

## What happened? `String.format` is special cased such that parameters can be on their own line. However there is no special handling for log methods. ## What did you want...

enhancement

This indent is too long _Originally posted by @dansanduleac in https://github.com/palantir/gradle-consistent-versions/pull/305/review_comment/create_ and https://github.com/palantir/gradle-consistent-versions/pull/305/files#r335519231 and https://github.com/palantir/gradle-consistent-versions/pull/305/files#r336262730

bug

## What happened? How code was written: ```java float renderX, renderY; renderX = switch (horizontalAlignment) { case Left -> x; case Center -> x - font.width(text) / 2f; case Right...

## What happened? We applied palantir-java-format (using spotless in gradle) on a somewhat larger codebase, and it crashed on 3 different pieces of valid java code. We have worked around...

bug

###### _excavator_ is a bot for automating changes across repositories. Changes produced by the roomba/gradle8-pr check. To enable or disable this check, please contact the maintainers of Excavator.

no changelog
merge when ready

## What happened? this tool formats text block in not ideal format. see original verion. ```java @Update(""" update master_data_manager set version = version + 1, update_time = now(), update_by =...

## Before this PR May error on parsing Java 21 file. ## After this PR Support of different JEP of Java 21 and preview - JEP-430 StringTemplates - JEP-440 Record...

## What happened? Related issue: https://github.com/palantir/palantir-java-format/issues/1007 ## What did you want to happen? The formatter should indent `Record` constructor to be `4` spaces instead of `8`

## What happened? When formatting the following snippet, the method parameter annotations are not aligned. I.e. this is the formatting output using version 2.26.0: ```java interface MyClass { MyCustomReturnType getReturnType(...

bug