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

In the README, there are some before/after examples, but it isn't clear whether that's comparing this library to the google version, or just to unformatted code. It'd be great to...

## What happened? The formatter should allow the users to set a config file and override the default formatting. There is a special case where I'd like to override the...

## Error is thrown by the plugin palantir-java-format (2.35.0) after upgrading to Intellij IDEA to version 2023.2.1

## What happened? While using the Maven plugin `spotless-maven-plugin:2.37.0`, I can instruct it to use the GOOGLE `style`. ```xml GOOGLE ``` However using the latest version of `palantir-java-format` IntelliJ plugin,...

java.lang.ClassCastException: class com.intellij.psi.impl.source.tree.PsiErrorElementImpl cannot be cast to class org.jetbrains.kotlin.psi.KtElement (com.intellij.psi.impl.source.tree.PsiErrorElementImpl is in unnamed module of loader com.intellij.util.lang.PathClassLoader @5f150435; org.jetbrains.kotlin.psi.KtElement is in unnamed module of loader com.intellij.ide.plugins.cl.PluginClassLoader @629511a8) at com.android.tools.idea.run.deployment.liveedit.PsiListener.handleChangeEvent(PsiListener.kt:119) at...

## What happened? palantir-java-format throws an exception when running on a project that lives in WSL2, with WSL2-based JDK. ## What did you want to happen? It should format my...

plugin is normal running on version 2.26.0, but failed in verison 2.27.0 and higher env: JDK 8 IntelliJ IDEA 2022.2 (Community Edition) Windows 10

## What happened? The following formatting is produced by Palantir (we run it as a plugin to Spotless), version 2.28.0: ``` private static final int[] ACCESSORY_SLOTS = {RING_1_SLOT_NUM, RING_2_SLOT_NUM, BRACELET_SLOT_NUM,...

## What happened? Test class: ```java package org.test; public class Test { void test() { String sealed = "a sealed test"; } } ``` executing: `mvn -V spotless:2.36.0:apply` ### JDK...

## What happened? Original code: ```java protected void findSubscriptions( @NonNull Object listener, TriConsumer consumer) { } ``` After reformatting: ```java protected void findSubscriptions( @NonNull Object listener, TriConsumer consumer) { }...