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

@mkurz mkurz commented Apr 15, 2026

Copy link
Copy Markdown
Contributor

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

mkurz commented Jun 8, 2026

Copy link
Copy Markdown
Contributor Author

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

@cushon

cushon commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

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.

@mkurz

mkurz commented Jun 9, 2026

Copy link
Copy Markdown
Contributor Author

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.

Great, thanks!

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