mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
21 lines
497 B
HTML
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> |