mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 15:09:39 +07:00
[java] fixes javadoc inspection false positive for split @see tags (IDEA-158662)
This commit is contained in:
@@ -204,7 +204,7 @@ public class JavadocHighlightUtil {
|
||||
private static boolean isValidSeeRef(PsiElement e) {
|
||||
if (SEE_TAG_REFS.contains(e.getNode().getElementType())) return true;
|
||||
|
||||
String text = e.getText();
|
||||
String text = e.getText().trim();
|
||||
if (StringUtil.isQuotedString(text) && text.charAt(0) == '"') return true;
|
||||
|
||||
if (text.toLowerCase(Locale.US).startsWith("<a href=")) return true;
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
class Test {
|
||||
/**
|
||||
* @see
|
||||
* <a href="http://docs.oracle.com/javase/8/docs/technotes/tools/unix/javadoc.html#CHDCDBGG">
|
||||
* Oracle Docs</a>
|
||||
*/
|
||||
void m() { }
|
||||
}
|
||||
@@ -65,6 +65,7 @@ public class JavadocHighlightingTest extends LightDaemonAnalyzerTestCase {
|
||||
public void testSee3() { doTest(); }
|
||||
public void testSee4() { doTest(); }
|
||||
public void testSee5() { doTest(); }
|
||||
public void testSee6() { doTest(); }
|
||||
public void testLinkToItself() { doTest(); }
|
||||
public void testSeeConstants() { doTest(); }
|
||||
public void testSeeNonRefs() { doTest(); }
|
||||
|
||||
Reference in New Issue
Block a user