You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unnamed variables have been added to JDK 21 as a preview feature (https://openjdk.org/jeps/443). When formatting the source code with an unnamed variable, google-java-format throws an exception.
Caused by: com.google.googlejavaformat.java.FormatterException: 102:8: error: expected token: '_'; generated instead
at com.google.googlejavaformat.java.Formatter.getFormatReplacements(Formatter.java:275)
at com.google.googlejavaformat.java.Formatter.formatSource(Formatter.java:247)
at com.google.googlejavaformat.java.Formatter.formatSource(Formatter.java:213)
at java.base@21.0.1/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
... 169 more
The text was updated successfully, but these errors were encountered:
Unnamed variables have been added to JDK 21 as a preview feature (https://openjdk.org/jeps/443). When formatting the source code with an unnamed variable, google-java-format throws an exception.
The text was updated successfully, but these errors were encountered: