| <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> |