-
Notifications
You must be signed in to change notification settings - Fork 861
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error formatting switch blocks with arrow labels #507
Comments
Duplicate of #477 ? |
#477 refers to switch expressions, and has been fixed in GJF 1.8. This issue specifically affects switch statements (non-value returning) using the arrow label syntax (traditional EDIT: actually, I could be wrong. Testing with the HEAD build... |
@tbroyer you're correct, looks like this has already been fixed on master. Closing! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
GJF gives the following error when formatting a file containing a switch statement using Java 14 arrow labels (
case ... ->
):For example:
GJF version:
google-java-format-1.8-all-deps.jar
Java version:
The text was updated successfully, but these errors were encountered: