google-java-format
google-java-format copied to clipboard
Reformats Java source code to comply with Google Java Style.
Add badges into README for better version info displaying. [](https://central.sonatype.com/search?q=com.google.googlejavaformat) [](https://plugins.jetbrains.com/plugin/8527-google-java-format) [](LICENSE)
This happened with the all deps jar from github, for both versions `1.15.0` and `1.16.0`. ``` $ java --version openjdk 17.0.6 2023-01-17 OpenJDK Runtime Environment (build 17.0.6+10) OpenJDK 64-Bit Server...
In installed *google-java-format-eclipse-plugin-1.18.1.jar* into the eclipse dropins folder and set it to be the default formatter. When I run *format* it does not do anything and throws no error. The...
I'm working on a project ([Apache Flink](https://github.com/apache/flink)) using AOSP format but with [customized import ordering](https://github.com/apache/flink/blob/e0240c782073f879a1a1e3fe22b45a38ee499c45/pom.xml#L2123-L2126). I manually set the order in `Preferences | Editor | Code Style | Java |...
Starting from 1.16.0 version, the plugin is incompatible with the automatic extract delegate IntelliJ refactor. ```txt IntelliJ IDEA 2023.2.5 (Ultimate Edition) Build #IU-232.10227.8, built on November 9, 2023 Runtime version:...
When using google-java-format to format multiple files and print their formatted results to standard-out, it's unclear how I'm supposed to disambiguate between the results in the output. For performance reasons,...
Hello, I am using it while satisfying the google-java-format. I have a question about project build and would like to ask. ### Build Environment * Windows 10 / 11 *...
### Version 1.18.1, all-deps JAR ### Description In some cases Google Java Format wraps / splits long string literals which exceed the maximum line length in a way which makes...
google-java-format removes some but not all unneeded import statements. I suggest that it should remove more unneeded static imports. As an example, in Error Prone file `ASTHelpers.java`, consider [the line](https://github.com/google/error-prone/blob/1c38087e16210e1a4b739cb6a21565fc283e8532/check_api/src/main/java/com/google/errorprone/util/ASTHelpers.java#L27)...
the configure is not work, in idea 2022.3.3 --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED --add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED --add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED