mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-160837 ('<code>...</code> can be replaced with {@code ...}' inspection quick fix should convert angle brackets)
This commit is contained in:
+2
-1
@@ -117,7 +117,8 @@ public class HtmlTagCanBeJavadocTagInspection extends BaseInspection {
|
||||
if (out.length() == "{@code".length() && endOffset - startOffset > 0 && !Character.isWhitespace(text.charAt(startOffset))) {
|
||||
out.append(' ');
|
||||
}
|
||||
out.append(text, startOffset, endOffset);
|
||||
final String s = text.substring(startOffset, endOffset);
|
||||
out.append(StringUtil.unescapeXml(s));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
/**
|
||||
* <
|
||||
* {@code 2 < 3}
|
||||
* >
|
||||
*/
|
||||
class Lt {
|
||||
|
||||
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
/**
|
||||
* <
|
||||
* <caret><code>2 < 3</code>
|
||||
* >
|
||||
*/
|
||||
class Lt {
|
||||
|
||||
|
||||
}
|
||||
+1
@@ -18,4 +18,5 @@ public class HtmlTagCanBeJavadocTagFixTest extends IGQuickFixesTestCase {
|
||||
public void testBraces2() { doTest(); }
|
||||
public void testSecond() { doTest(); }
|
||||
public void testMultiline() { doTest(); }
|
||||
public void testLt() { doTest(); }
|
||||
}
|
||||
Reference in New Issue
Block a user