blob: 9a032a275a72ce4c260b4fc5e701a5cc793efbf6 [file]
<html>
<body>
Reports when a string or concatenation of strings can be replaced with a text block.
<!-- tooltip end -->
Example:
<pre><code>
String html = "&lt;html&gt;\n" +
" &lt;body&gt;\n" +
" &lt;p>Hello, world&lt;/p&gt;\n" +
" &lt;/body&gt;\n" +
"&lt;/html&gt;\n";
</code></pre>
<p>can be replaced with</p>
<pre><code>
String html = """
&lt;html&gt;
&lt;body&gt;
&lt;p>Hello, world&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;
""";
</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>