Reports text blocks that are indented using both space and tab characters. This can produce unexpected results because spaces and tabs are treated equally by javac's text block processing.

以下の例では、スぺ―スとタブをそれぞれ · として視覚的に表現しています。また、エディターではタブは 2 つのスペースに相当します。

例:


String colors = """
····red
␉ ␉ green
····blue""";

When printing such a string, the result will be:


··red
green
··blue

After the compiler removes an equal number of whitespace characters from the beginning of each line, some lines remain with leading spaces.

2021.1 の新機能です