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.

다음 예시에서 공백 및 탭은 각각 ·로 표시되며 에디터에서 탭 1개는 공백 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의 새로운 기능