Files
openide/java/java-impl/resources/inspectionDescriptions/UnnecessaryStringEscape.html
Bas Leijdekkers fdde91f28d Java: update inspection descriptions
GitOrigin-RevId: 829a5e8f0b97a4e21dbb1f7d99ba70b777d1240f
2025-04-12 16:28:13 +00:00

23 lines
615 B
HTML

<html>
<body>
Reports unnecessarily escaped characters in <code>String</code> literals,
and optionally <code>char</code> literals.
<p>Escaped tab characters (<code>\t</code>) are not reported, even though escaping them is not required,
because tab characters are hard to tell apart from spaces.</p>
<p>Examples:</p>
<pre><code>
String s = "\'Scare\' quotes";
String t = """
All you need is\n\tLove\n""";
</code></pre>
<p>After the quick-fix is applied:</p>
<pre><code>
String s = "'Scare' quotes";
String t = """
All you need is
\tLove
""";
</code></pre>
<!-- tooltip end -->
</body>
</html>