---
name: google-java-format
description: "Use when the user formats Java source files to a consistent style on the command line - applying Google Java Style or Android (AOSP) style, replacing files in place, or running a CI check that fails on style drift."
---


# google-java-format

## When to use

See [references/when-to-use.md](references/when-to-use.md). Load only when this section is needed.

## Invocation

See [references/invocation.md](references/invocation.md). Load only when this section is needed.

## Patterns

See [references/patterns.md](references/patterns.md). Load only when this section is needed.

## Anti-patterns

See [references/anti-patterns.md](references/anti-patterns.md). Load only when this section is needed.

## Cross-refs

See [references/cross-refs.md](references/cross-refs.md). Load only when this section is needed.
