Closed GrapeBaBa closed 2 months ago
same problem
Downstream reports - https://github.com/diffplug/spotless/issues/2046
Duplicate of #930
Maybe not necessarily? Text blocks and string templates are separate features, although they can be used together.
For what it's worth, there were some recent changes to google-java-format to add initial support for string templates, it's possible that well be helpful for palanti-java-format (one, two, three)
You are right. It is a preview feature in JDK 21, got me confused :)
You are right. It is a preview feature in JDK 21, got me confused :)
And in JDK 23: Remove the String Templates preview feature: https://bugs.openjdk.org/browse/JDK-8329949
Thanks guys.
What happened?
If the code contains string templates,
spotlessApply
will throw errors.What did you want to happen?
should works fine.