diff --git a/java/java-impl/src/com/intellij/codeInsight/javadoc/AnnotationDocGenerator.java b/java/java-impl/src/com/intellij/codeInsight/javadoc/AnnotationDocGenerator.java index 4d0f114b0145..9a43c473f0c9 100644 --- a/java/java-impl/src/com/intellij/codeInsight/javadoc/AnnotationDocGenerator.java +++ b/java/java-impl/src/com/intellij/codeInsight/javadoc/AnnotationDocGenerator.java @@ -97,7 +97,7 @@ public class AnnotationDocGenerator { buffer.append("@"); String name = forceShortNames ? myNameReference.getReferenceName() : myNameReference.getText(); if (type != null && generateLink) { - JavaDocInfoGenerator.generateLink(buffer, myTargetClass, name, false); + JavaDocInfoGenerator.generateLink(buffer, myTargetClass, name, format == AnnotationFormat.JavaDocComplete); } else { buffer.append(name); } diff --git a/java/java-tests/testData/codeInsight/javadocIG/documentationForJdkClassWithReferencesToClassesFromJavaLang.html b/java/java-tests/testData/codeInsight/javadocIG/documentationForJdkClassWithReferencesToClassesFromJavaLang.html index 2c8e87e0f4e5..4ac29ff86353 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/documentationForJdkClassWithReferencesToClassesFromJavaLang.html +++ b/java/java-tests/testData/codeInsight/javadocIG/documentationForJdkClassWithReferencesToClassesFromJavaLang.html @@ -5,4 +5,4 @@ public abstract boolean contains(contains in interface Collection

Params:o – element whose presence in this list is to be tested

Returns:

true if this list contains the specified element

Throws:

ClassCastException – if the type of the specified element is incompatible with this list (optional)

NullPointerException – if the specified element is null and this list does not permit null elements (optional)

Inferred annotations:

@org.jetbrains.annotations.Contract(pure = true) \ No newline at end of file +

Overrides:

contains in interface Collection

Params:

o – element whose presence in this list is to be tested

Returns:

true if this list contains the specified element

Throws:

ClassCastException – if the type of the specified element is incompatible with this list (optional)

NullPointerException – if the specified element is null and this list does not permit null elements (optional)

Inferred annotations:

@org.jetbrains.annotations.Contract(pure = true)

\ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/javadocIG/documentationForUncheckedExceptionsInSupers.html b/java/java-tests/testData/codeInsight/javadocIG/documentationForUncheckedExceptionsInSupers.html index ad7b6d41efb3..fe9e7ccd9f67 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/documentationForUncheckedExceptionsInSupers.html +++ b/java/java-tests/testData/codeInsight/javadocIG/documentationForUncheckedExceptionsInSupers.html @@ -5,4 +5,4 @@ boolean contains(Obje contains at least one element e such that (o==null ? e==null : o.equals(e)). -

Overrides:

contains in interface Collection
contains in interface I

Params:o – element whose presence in this collection is to be tested

Returns:

true if this collection contains the specified element

Throws:

ClassCastException – if the type of the specified element is incompatible with this collection (optional)

NullPointerException – if the specified element is null and this collection does not permit null elements (optional)

Inferred annotations:

@org.jetbrains.annotations.Contract(pure = true) \ No newline at end of file +

Overrides:

contains in interface Collection
contains in interface I

Params:o – element whose presence in this collection is to be tested

Returns:

true if this collection contains the specified element

Throws:

ClassCastException – if the type of the specified element is incompatible with this collection (optional)

NullPointerException – if the specified element is null and this collection does not permit null elements (optional)

Inferred annotations:

@org.jetbrains.annotations.Contract(pure = true) \ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/javadocIG/enumValueOf.html b/java/java-tests/testData/codeInsight/javadocIG/enumValueOf.html index 64d6dbfe8f16..0246e6509ba0 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/enumValueOf.html +++ b/java/java-tests/testData/codeInsight/javadocIG/enumValueOf.html @@ -1,4 +1,4 @@

En
@Contract(pure = true)  static int valueOf(int i)
myjavadoc -

Params:

i –

Returns:

Inferred annotations:

@org.jetbrains.annotations.Contract(pure = true)

\ No newline at end of file +

Params:

i –

Returns:

Inferred annotations:

@org.jetbrains.annotations.Contract(pure = true)

\ No newline at end of file