| <html> | |
| <body> | |
| Reports when a string or concatenation of strings can be replaced with a text block. | |
| <!-- tooltip end --> | |
| Example: | |
| <pre><code> | |
| String html = "<html>\n" + | |
| " <body>\n" + | |
| " <p>Hello, world</p>\n" + | |
| " </body>\n" + | |
| "</html>\n"; | |
| </code></pre> | |
| <p>can be replaced with</p> | |
| <pre><code> | |
| String html = """ | |
| <html> | |
| <body> | |
| <p>Hello, world</p> | |
| </body> | |
| </html> | |
| """; | |
| </code></pre> | |
| <p>This inspection only reports if the configured language level is 14 Preview.</p> | |
| <p><small>New in 2019.3</small></p> | |
| </body> | |
| </html> |