
org.sonar.l10n.java.rules.java.S5664.html Maven / Gradle / Ivy
Why is this an issue?
Either use only spaces or only tabs for the indentation of a text block. Mixing white space will lead to a result with irregular indentation.
Noncompliant code example
String textBlock = """
this is
<tab>text block!
!!!!
""";
Compliant solution
String textBlock = """
this is
text block!
!!!!
""";
Resources
- JEP 378: Text Blocks
- Programmer’s Guide To Text Blocks, by Jim Laskey and Stuart Marks
© 2015 - 2025 Weber Informatics LLC | Privacy Policy