Skip to content

Add CLI flag to disable modifier reordering#1388

Merged
copybara-service[bot] merged 1 commit into
masterfrom
test_917226990
May 18, 2026
Merged

Add CLI flag to disable modifier reordering#1388
copybara-service[bot] merged 1 commit into
masterfrom
test_917226990

Conversation

@copybara-service
Copy link
Copy Markdown

Add CLI flag to disable modifier reordering

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.

Fixes #1373

FUTURE_COPYBARA_INTEGRATE_REVIEW=#1373 from mkurz:cli-skip-reordering-modifiers ef826a7

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.

Fixes #1373

COPYBARA_INTEGRATE_REVIEW=#1373 from mkurz:cli-skip-reordering-modifiers ef826a7
PiperOrigin-RevId: 917231420
@copybara-service copybara-service Bot merged commit 6bbd4a4 into master May 18, 2026
@copybara-service copybara-service Bot deleted the test_917226990 branch May 18, 2026 14:54
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.

1 participant