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? ``` .orElseGet(() -> switch (value) { case ONE -> // one-liner here case TWO -> // multi-line, single builder }); ``` ## What did you want to...

For a variable definition where the variable uses inner class ``` private static final ClusterLauncher.ClusterLaunchResponse CLUSTER_LAUNCH_RESPONSE = ClusterLauncher.ClusterLaunchResponse.of(URI, ENVIRONMENT_PARAMS); ``` the formatter reformatted it to ``` private static final ClusterLauncher.ClusterLaunchResponse...

bug

## What happened? palanitr-java-format 2.0.0 reformats the following line which violates line length: ``` private static final TypeReference TYPE_REFERENCE = new TypeReference() {}; ``` ## What did you want to...

bug

At present, my IDE will take string literals and automatically break them across lines. An example might be ```java callMethod("some very very very long string"); ``` which it will break...

Hi, Could you provide a section in README to format code with maven like in project https://github.com/google/google-java-format ? Thank you

Hi, currently some of the dependencies are missing in palantir-java-format.jar. A few months ago it was working without any problem because palantir's java-format had the same dependencies as google-java-format and...

## What happened? ``` @Mock(answer = Answers.RETURNS_DEEP_STUBS) private Job job; ``` gets reformatted as ``` @Mock(answer = Answers.RETURNS_DEEP_STUBS) private Job job; ``` Which is not very space-efficient if you have...

We've hit an obscure edge case for the two-column argList logic, where it doesn't end up keeping the pairs together. The logic tries to assert that N/2+1 rows have the...

bug

> I tend to optimize around putting the entire tag on a single line. Splitting on the space is as reasonable as anything, but I would prefer to avoid breaking...

## What happened? ```java throw new SafeIllegalArgumentException("Invalid recipient field - contains multiple " + "foreign key properties.", UnsafeArg.of("field", maybeField)); ``` gets turned into ```java throw new SafeIllegalArgumentException( "Invalid recipient field...

enhancement