We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
$ cat > A.java <<'EOF' public sealed interface A { record AA(Long a) implements A {} static Long mySwitch(A a) { switch (a) { case AA(_) -> { return 1L; } } } } EOF $ java -jar google-java-format-1.19.2-all-deps.jar -r A.java A.java:6:13: error: expected token: '_'; generated ) instead $ javac A.java --enable-preview --release 21 2> /dev/null && echo ok ok
The text was updated successfully, but these errors were encountered:
Handle 'any' patterns
ebccc2c
Fixes #1037 PiperOrigin-RevId: 604505236
9d7e35e
ad089da
Successfully merging a pull request may close this issue.
The text was updated successfully, but these errors were encountered: