-
Notifications
You must be signed in to change notification settings - Fork 870
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
Formatter fails for Java 14+ style implicit instanceof cast #772
Comments
Same here. I confirm it with the version |
I was able to make it work when forcing the Java version to be >= 14 |
I already use java 17, apart from that how can we force it? |
Make sure that Java17 is what is the default Java
Check by running `java -version`
Also if you are calling google-java-format from a tool like Gradle(spotless
etc) make sure that the Java toolchain used by it is Java14+
On Tue, 21 Jun 2022 at 4:23 PM, Fırat KÜÇÜK ***@***.***> wrote:
I already use java 17, apart from that how can we force it?
—
Reply to this email directly, view it on GitHub
<#772 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADFW247HPXBCE4Z7B4YH3ITVQF3WZANCNFSM5R5C3XDA>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
--
Cheers,
Anant
…--
I'm the master of my fate, I'm the captain of my soul.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following code fragment fails with "expected
)
message.The text was updated successfully, but these errors were encountered: