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

Reformats Java source code to comply with Google Java Style.

Results 223 google-java-format issues
Sort by recently updated
recently updated
newest added

This is found in the emacs package, Now, command `google-java-format-region` always formats the whole buffer, the current active region seems being omitted and didn't take into consideration. Tried to look...

When creates a new Test or class fails with this error: java.lang.IllegalAccessError: class com.google.googlejavaformat.java.JavaInput (in unnamed module @0x34c31d27) cannot access class com.sun.tools.javac.parser.Tokens$TokenKind (in module jdk.compiler) because module jdk.compiler does not...

IntelliJ

Following exception is observed whenever any file is formatted. ``` Got unexpected exception during formatting PsiJavaFile:TestRepository.java java.util.concurrent.ExecutionException: java.lang.IllegalAccessError: class com.google.googlejavaformat.java.JavaInput (in unnamed module @0x70a4b254) cannot access class com.sun.tools.javac.parser.Tokens$TokenKind (in module...

IntelliJ

> java.util.concurrent.ExecutionException: java.lang.IllegalAccessError: class com.google.googlejavaformat.java.JavaInput (in unnamed module @0x6b0d546) cannot access class com.sun.tools.javac.parser.Tokens$TokenKind (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.parser to unnamed module @0x6b0d546 at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122) at...

IntelliJ

I get this error in IntelliJ 2022.1.2 and GJF plugin 1.15.0.0 ``` Exception while committing com.intellij.psi.SingleRootFileViewProvider{vFile=LightVirtualFile: /fragment.kt, content=com.intellij.psi.AbstractFileViewProvider$PsiFileContent@f26e041, eventSystemEnabled=true}, eventSystemEnabled=false com.intellij.psi.PsiInvalidElementAccessException: Element class com.intellij.psi.impl.source.tree.CompositeElement of type REFERENCE_EXPRESSION (class org.jetbrains.kotlin.psi.stubs.elements.KtNameReferenceExpressionElementType) at...

IntelliJ

If I format the following file using the intellij plugin (IDE version: Ultimate `2020.2.4` / plugin version: google-java-format `1.9.0.0`. ) I get different result when compared to using the jar...

IntelliJ

We always want to format type annotations in-line: ``` @Nullable Object foo() {} ``` This is tricky in contexts where type annotations could be mixed together with declaration annotations, such...

Google Java Style should sort imports in group alphabetically. But the plugin do not sort. It is as follows in my IDEA: ```java import javax.annotation.Resource; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import...

IntelliJ

Hello, As far as I know, there are two ways to apply google java style for Intellij 1. Install google-java-format plugin and enable it 2. Download [google style xml file](https://raw.githubusercontent.com/google/styleguide/gh-pages/intellij-java-google-style.xml)...

## What happens When running the formatter against a class that will remove unused import(s) and would remove all imports of that type, the formatter leaves the surrounding empty lines....