Skip to content

Restore enum-compatible methods on JavaFormatterOptions.Style - #1477

Open
copybara-service[bot] wants to merge 1 commit into
masterfrom
test_996054769
Open

copybara-service[bot] wants to merge 1 commit into
masterfrom
test_996054769

Conversation

@copybara-service

Copy link
Copy Markdown

Restore enum-compatible methods on JavaFormatterOptions.Style

Style was changed from an enum to a record, which removed the implicit enum methods. Tools such as Spotless call Style.valueOf(String) to map user configuration to a style, and fail with NoSuchMethodError against the new version.

Fixes #1472

FUTURE_COPYBARA_INTEGRATE_REVIEW=#1472 from Goooler:style-enum-compat ab11ed6

`Style` was changed from an enum to a record, which removed the implicit enum methods. Tools such as Spotless call `Style.valueOf(String)` to map user configuration to a style, and fail with `NoSuchMethodError` against the new version.

- Refs #1465 (comment)
- Closes diffplug/spotless#3126.

Fixes #1472

FUTURE_COPYBARA_INTEGRATE_REVIEW=#1472 from Goooler:style-enum-compat ab11ed6
PiperOrigin-RevId: 996054769
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.

google-java-format 1.37.0: NoSuchMethodError on JavaFormatterOptions$Style.valueOf (Style is now a record)

1 participant