Skip to content

Add CLI flag to disable modifier reordering#1373

Closed
mkurz wants to merge 1 commit into
google:masterfrom
mkurz:cli-skip-reordering-modifiers
Closed

Add CLI flag to disable modifier reordering#1373
mkurz wants to merge 1 commit into
google:masterfrom
mkurz:cli-skip-reordering-modifiers

Conversation

@mkurz
Copy link
Copy Markdown
Contributor

@mkurz mkurz commented Apr 15, 2026

The library API already supports JavaFormatterOptions.reorderModifiers(false), but the CLI had no equivalent flag.

This change adds --skip-reordering-modifiers and wires it through the CLI into JavaFormatterOptions.

The default CLI behavior is unchanged.

The library API already supports `JavaFormatterOptions.reorderModifiers(false)`, but the CLI had no equivalent flag.

This change adds `--skip-reordering-modifiers` and wires it through the CLI into `JavaFormatterOptions`.

The default CLI behavior is unchanged.
@mkurz mkurz deleted the cli-skip-reordering-modifiers branch May 18, 2026 15:12
@mkurz
Copy link
Copy Markdown
Contributor Author

mkurz commented Jun 8, 2026

Thanks for merging!
@cushon Any ETA for next release? Thanks!

@cushon
Copy link
Copy Markdown
Collaborator

cushon commented Jun 8, 2026

Thanks for merging! @cushon Any ETA for next release? Thanks!

I'm expecting a release this month, there are a few changes in-progress to improve support for Java 25 and I'll plan on doing another release once they land.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants