Files
openide/java/java-impl/resources/inspectionDescriptions/StringTemplateMigration.html
Leonid Shalupov 40795fe787 IJI-2422: community/java: move resources under resources root
GitOrigin-RevId: 8b2b63fc6db476ca0c2cfe5cadd84db6c4236d0f
2025-02-05 04:43:28 +00:00

21 lines
497 B
HTML

<html>
<body>
Reports <code>String</code> concatenations that can be simplified by replacing them with a string template.
<p><b>Example:</b></p>
<pre><code>
String name = "Bob";
String greeting = "Hello, " + name + ". You are " + 29 + " years old.";
</code></pre>
<p>After the quick-fix is applied:</p>
<pre><code>
String name = "Bob";
String greeting = STR."Hello, \{name}. You are 29 years old.";
</code></pre>
<!-- tooltip end -->
<p><small>New in 2023.3</small></p>
</body>
</html>