-
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
Indentation level difference after case
between Java 11 and 17
#643
Comments
copybara-service bot
pushed a commit
that referenced
this issue
Aug 25, 2021
Fixes #643 PiperOrigin-RevId: 392567001
Given that Java 17 has been GA for over a month now, any chance of a new GJF release that's Java 17 compatible? |
fawind
pushed a commit
to palantir/palantir-java-format
that referenced
this issue
Jan 7, 2022
Fixes google/google-java-format#643 PiperOrigin-RevId: 392966720
fawind
pushed a commit
to palantir/palantir-java-format
that referenced
this issue
Jan 7, 2022
Fixes google/google-java-format#643 PiperOrigin-RevId: 392966720
fawind
pushed a commit
to palantir/palantir-java-format
that referenced
this issue
Jan 7, 2022
Fixes google/google-java-format#643 PiperOrigin-RevId: 392966720
fawind
pushed a commit
to palantir/palantir-java-format
that referenced
this issue
Jan 10, 2022
Fixes google/google-java-format#643 PiperOrigin-RevId: 392966720
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The 1.11.0 formatter running on a Java 17 JDK indents some lines further than the same formatter running on a Java 11 JDK. The problem can be seen with long expressions in switch cases.
Input file:
Java 11 format: (build 11.0.9.1+1)
(10 spaces before each
|
)Java 17 format: (build 17-ea+31-2664)
(14 spaces before each
|
)The indentation is similarly inconsistent with or without the
-a
flag.The text was updated successfully, but these errors were encountered: