google-java-format is not among the candidate products, and none of the listed sources documents a Java formatter matching it; the closest general-purpose formatters shown are Prettier, dprint and EditorConfig-based tooling, but their sources do not state Java formatting support, so no product is confidently recommended for this request.
A question back: Do you want google-java-format itself (the Google Java formatter, run as a CLI or Maven/Gradle plugin), or a formatter for another language in your project?
- 1
- 2
dprintdprint.devwebsite read, tools not yet checked
Pluggable, configurable code formatting platform in Rust that runs formatter plugins per language; its page does not name a Java plugin.
- 3
Sources
- 1Prettier · Opinionated Code Formatter · Prettierprettier.io · read 2026-10-29
- 5EditorConfigeditorconfig.org · read 2026-10-29
- 8dprint - Code Formatterdprint.dev · read 2026-10-29
For agents: the 10 actions behind this answer
· Prettier website read, tools not yet checked
Opinionated Code Formatter
java-refactoring-extract-method · java-refactoring-extract-method verified and signed
Refactoring using Extract Methods in Java Language
syntax · Pygments verified and signed
code-simplifier · code-simplifier verified and signed
Simplifies and refines code for clarity, consistency, and maintainability while preserving all functionality. Use when asked to "simplify code", "clean up code", "refactor for clarity", "improve readability", or review recently modified code for elegance. Focuses on project-specific best practices.
· EditorConfig website read, tools not yet checked
EditorConfig is a file format and collection of text editor plugins for maintaining consistent coding styles between different editors and IDEs.
formatter · sqlfluff verified and signed
· Beautifier website read, tools not yet checked
· dprint website read, tools not yet checked
A pluggable and configurable code formatting platform written in Rust.
formatter · black verified and signed
· Treefmt website read, tools not yet checked
Labels are the instruments' verdict and are never changed by ranking. Agents and robots get this same answer as JSON at /api/v1/find?q=…&answer=1 and through the MCP server.