blob: 1f5363a81b0e210e3958bb7736659b5509940c72 [file]
<html>
<body>
Reports text blocks which can be replaced with a regular string literal.
<!-- tooltip end -->
<p>Example:
<pre><code>
Object obj = engine.eval("""
function hello() {
print('"Hello, world"');
}
hello();
""");
</code></pre>
<p>can be replaced with</p>
<pre><code>
Object obj = engine.eval("function hello() {\n" +
" print('\"Hello, world\"');\n" +
"}\n" +
"\n" +
"hello();\n");
</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>