[java] fixes javadoc inspection false positive for split @see tags (IDEA-158662)

This commit is contained in:
Roman Shevchenko
2016-07-18 20:55:08 +02:00
parent 88a6b5defe
commit c4e8bf5219
3 changed files with 10 additions and 1 deletions

View File

@@ -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;

View File

@@ -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() { }
}

View File

@@ -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(); }