Similar to #1195, we're seeing gjf 1.25.1 failing on some specific text blocks:
public interface Foo { private static String foo = """ foo\ bar """; }
Note the extra space at the end of the text block.
Fails with:
Foo.java:error: Something has gone terribly wrong. We planned to make the below formatting change, but have aborted because it would unexpectedly change the AST.
Please file a bug: https://github.com/google/google-java-format/issues/new
=== Actual: ===
public interface Foo {
private static String foo = "foobar ";
}
=== Expected: ===
public interface Foo {
private static String foo = "foobar";
}
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4