The indentation is removed at compile time, per the JLS:
https://docs.oracle.com/javase/specs/jls/se15/html/jls-3.htm...> Incidental white space is removed, as if by execution of String.stripIndent on the characters resulting from step 1.
The new stripIndent() method is provided as a convenience to developers.