From ffabbafe0b319aa93acb5cc94606a8a46a98191d Mon Sep 17 00:00:00 2001 From: Mathias Date: Mon, 5 Jan 2026 17:56:46 +0100 Subject: [PATCH] IDEA-382919 Javadoc: Improve the rendering of Markdown comments (test files) This commit is separated to reduce the noise during review. GitOrigin-RevId: 829358f891896dc628446727d2e335eff5262819 --- .../codeInsight/javadocIG/allTags.html | 34 +++---- .../javadocIG/allTagsMarkdown.html | 16 ++-- .../javadocIG/anonymousAndSuperJavadoc.html | 2 +- .../codeInsight/javadocIG/apiNotes.html | 10 +-- .../codeInsight/javadocIG/blockquotePre.html | 2 +- .../javadocIG/classTypeParameter2.html | 2 +- .../testData/codeInsight/javadocIG/code.html | 2 +- .../documentationForGetterByField.html | 2 +- ...JdkClassWhenExternalDocIsNotAvailable.html | 88 +++++++++---------- ...ssWithReferencesToClassesFromJavaLang.html | 14 +-- ...ntationForUncheckedExceptionsInSupers.html | 11 +-- .../codeInsight/javadocIG/doubleLt.html | 2 +- .../codeInsight/javadocIG/dumbMode.html | 4 +- .../codeInsight/javadocIG/enumValueOf.html | 4 +- .../javadocIG/escapeAngleBracketsInCode.html | 2 +- .../javadocIG/escapeHtmlCodesInCodeBlock.html | 2 +- .../javadocIG/escapeHtmlInCode.html | 2 +- .../codeInsight/javadocIG/escapeValues.html | 2 +- .../javadocIG/escapingInLiteral.html | 4 +- .../javadocIG/externalLinksInJavadoc.html | 4 +- .../javadocIG/externalSnippet/Main.html | 2 +- .../javadocIG/externalSnippet/Malformed.html | 2 +- .../javadocIG/externalSnippet/MultiTag.html | 2 +- .../javadocIG/externalSnippet/NoRegion.html | 2 +- .../javadocIG/externalSnippet/Region.html | 2 +- .../externalSnippet/RegionNoMarkup.html | 2 +- .../javadocIG/externalSnippet/TextFile.html | 2 +- .../javadocIG/externalSnippet/Unresolved.html | 2 +- .../javadocIG/fragmentReference.html | 8 +- .../htmlLinkToPackageInfo/pack/A.html | 2 +- .../javadocIG/htmlLinkWithRef.html | 6 +- .../codeInsight/javadocIG/ideadev2326.html | 3 +- .../codeInsight/javadocIG/inlineTagIndex.html | 8 +- .../javadocIG/inlineTagSnippet.html | 6 +- ...inlineTagSnippetHighlightSeveralLines.html | 4 +- .../javadocIG/inlineTagSnippetNoMarkup.html | 4 +- .../inlineTagSnippetWithoutBody.html | 4 +- .../javadocIG/inlineTagSummary.html | 12 +-- .../javadocIG/leadingSpacesInPre.html | 18 ++-- .../libraryPackageDocumentation.html | 2 +- .../codeInsight/javadocIG/linkToModule.html | 4 +- .../javadocIG/linkWithLineBreak.html | 2 +- .../codeInsight/javadocIG/linkWithModule.html | 4 +- .../codeInsight/javadocIG/literal.html | 4 +- .../javadocIG/literalInsideCode.html | 2 +- .../javadocIG/markdownCodeBlock.html | 6 +- .../javadocIG/markdownGeneralFeatures.html | 2 +- .../javadocIG/markdownInlineCodeBlock.html | 10 +-- .../javadocIG/markdownJepExample.html | 30 +++---- .../javadocIG/methodTypeParameter2.html | 2 +- .../javadocIG/methodTypeParameter3.html | 2 +- .../codeInsight/javadocIG/pInsidePre.html | 12 +-- .../javadocIG/packageInfo/packageInfo.html | 2 +- .../packageInfoFromComment/packageInfo.html | 2 +- .../packageInfoWithCopyright/packageInfo.html | 2 +- .../codeInsight/javadocIG/paramInMethod.html | 2 +- .../javadocIG/preInDeprecated.html | 8 +- .../javadocIG/preTagLeakBeforeCode.html | 8 +- .../javadocIG/preTagStrictBeforeCode.html | 10 +-- .../javadocIG/recordParameters.html | 4 +- .../javadocIG/syntheticEnumValues.html | 15 ++-- .../codeInsight/javadocIG/unicodeEscapes.html | 6 +- .../javadocIG/unknownInlineMultilineTag.html | 2 +- .../javadocIG/unknownInlineTag.html | 2 +- .../codeInsight/javadocIG/unknownTag.html | 2 +- .../java/codeInsight/JavaDocumentationTest.kt | 20 ++--- .../groovy/GroovyDocumentationTest.java | 18 ++-- .../editor/quickDoc/JavadocNavigationTest.kt | 2 +- .../editor/quickDoc/JavaClassUsedInKotlin.kt | 4 +- .../quickDoc/JavaDocFromOverridenClass.kt | 2 +- .../quickDoc/JavaDocFromOverridenInterface.kt | 2 +- .../editor/quickDoc/JavaMethodUsedInKotlin.kt | 2 +- .../quickDoc/JavaMethodUsedInKotlinInParen.kt | 2 +- 73 files changed, 253 insertions(+), 246 deletions(-) diff --git a/java/java-tests/testData/codeInsight/javadocIG/allTags.html b/java/java-tests/testData/codeInsight/javadocIG/allTags.html index 903013a552a0..0beed87fb36e 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/allTags.html +++ b/java/java-tests/testData/codeInsight/javadocIG/allTags.html @@ -1,19 +1,19 @@
 X
public <T extends Number> double calculate(
@NotNulli T a, @NotNulli T b
)

- Sample method demonstrating all Javadoc tags
- Returns calculated result.
- Math.E
- <T>
- Math.E
- Euler constant
- calculation
- java.version
- 2.718281828459045 -

 return a + b;
-

Deprecated

use Math.addExact -

Params:

a – first parameter
b – second parameter

Type parameters:

<T> – type parameter

Returns:

sum result

Throws:

ArithmeticException – overflow

IllegalArgumentException – invalid input

Since:

1.0 -

Version:

2.0 -

Author:

John Doe

See Also:

Math.E

spec

link spec -

provides

Math -

uses

Math -

hidden

\ No newline at end of file + Sample method demonstrating all Javadoc tags
+ Returns calculated result.
+ Math.E
+ <T>
+ Math.E
+ Euler constant
+ calculation
+ java.version
+ 2.718281828459045 +

 return a + b;
+

Deprecated

use Math.addExact +

Params:

a – first parameter
b – second parameter

Type parameters:

<T> – type parameter

Returns:

sum result

Throws:

ArithmeticException – overflow

IllegalArgumentException – invalid input

Since:

1.0 +

Version:

2.0 +

Author:

John Doe

See Also:

Math.E

spec

link spec +

provides

Math +

uses

Math +

hidden

\ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/javadocIG/allTagsMarkdown.html b/java/java-tests/testData/codeInsight/javadocIG/allTagsMarkdown.html index a73a2e11690d..298038a75b83 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/allTagsMarkdown.html +++ b/java/java-tests/testData/codeInsight/javadocIG/allTagsMarkdown.html @@ -1,11 +1,11 @@
 X
public <T extends Number> double calculateMd(
@NotNulli T a, @NotNulli T b
)

Sample method demonstrating all Javadoc tags
- Returns calculated result.
- Math.E
- <T>
- Math.E
- Euler constant
- calculation
- java.version
- 2.718281828459045

 return a + b;
+Returns calculated result.
+Math.E
+<T>
+Math.E
+Euler constant
+calculation
+java.version
+2.718281828459045

 return a + b;

Deprecated

use Math.addExact

Params:

a – first parameter
b – second parameter

Type parameters:

<T> – type parameter

Returns:

sum result

Throws:

ArithmeticException – overflow

IllegalArgumentException – invalid input

Since:

1.0

Version:

2.0

Author:

John Doe

See Also:

Math.E

spec

link spec

provides

Math

uses

Math

hidden

\ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/javadocIG/anonymousAndSuperJavadoc.html b/java/java-tests/testData/codeInsight/javadocIG/anonymousAndSuperJavadoc.html index 99413e58a920..39d5644a8d27 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/anonymousAndSuperJavadoc.html +++ b/java/java-tests/testData/codeInsight/javadocIG/anonymousAndSuperJavadoc.html @@ -1,3 +1,3 @@
public void foo()

From interface:

Foo
- some javadoc + some javadoc

Specified by:

foo in interface Foo

\ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/javadocIG/apiNotes.html b/java/java-tests/testData/codeInsight/javadocIG/apiNotes.html index 9e40f45b95cd..d83f9f7cc027 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/apiNotes.html +++ b/java/java-tests/testData/codeInsight/javadocIG/apiNotes.html @@ -1,8 +1,8 @@
 Test
public void foo()

API Note:

- my api note + my api note -

Implementation
Requirements:

- my impl spec +

Implementation
Requirements:

+ my impl spec -

Implementation
Note:

- my impl note

\ No newline at end of file +

Implementation
Note:

+ my impl note \ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/javadocIG/blockquotePre.html b/java/java-tests/testData/codeInsight/javadocIG/blockquotePre.html index fede7f1b03b2..7a53c1227dbb 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/blockquotePre.html +++ b/java/java-tests/testData/codeInsight/javadocIG/blockquotePre.html @@ -1,3 +1,3 @@

class Main

- Test

 foo
+ Test

 foo
\ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/javadocIG/classTypeParameter2.html b/java/java-tests/testData/codeInsight/javadocIG/classTypeParameter2.html index c5126116cd44..0e095de9a865 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/classTypeParameter2.html +++ b/java/java-tests/testData/codeInsight/javadocIG/classTypeParameter2.html @@ -1,2 +1,2 @@
<T>
-extends Runnable

param description

\ No newline at end of file +extends Runnable

param description

\ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/javadocIG/code.html b/java/java-tests/testData/codeInsight/javadocIG/code.html index d31699b3ecf1..b2e2ca33b1fd 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/code.html +++ b/java/java-tests/testData/codeInsight/javadocIG/code.html @@ -1,3 +1,3 @@
 Foo
int foo
-
class Clazzz {
def f[U](u: U) {}

val a = 1
}
+
class Clazzz {
def f[U](u: U) {}

val a = 1
}

\ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/javadocIG/documentationForGetterByField.html b/java/java-tests/testData/codeInsight/javadocIG/documentationForGetterByField.html index 0504710e6a93..b245182d4d9d 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/documentationForGetterByField.html +++ b/java/java-tests/testData/codeInsight/javadocIG/documentationForGetterByField.html @@ -1,3 +1,3 @@
 FooBar
public String getMyFoo()

From field:

myFoo
- foo bar baz + foo bar baz

\ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/javadocIG/documentationForJdkClassWhenExternalDocIsNotAvailable.html b/java/java-tests/testData/codeInsight/javadocIG/documentationForJdkClassWhenExternalDocIsNotAvailable.html index bb3fabe89895..4802c68e0404 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/documentationForJdkClassWhenExternalDocIsNotAvailable.html +++ b/java/java-tests/testData/codeInsight/javadocIG/documentationForJdkClassWhenExternalDocIsNotAvailable.html @@ -1,49 +1,49 @@
 java.lang
public final class String
 implements java.io.Serializable, Comparable<String>, CharSequence
- The String class represents character strings. All - string literals in Java programs, such as "abc", are - implemented as instances of this class. -

- Strings are constant; their values cannot be changed after they - are created. String buffers support mutable strings. - Because String objects are immutable they can be shared. For example: -

String str = "abc";

- is equivalent to: -

char data[] = {'a', 'b', 'c'};
String str = new String(data);

- Here are some more examples of how strings can be used: -

System.out.println("abc");
String cde = "cde";
System.out.println("abc" + cde);
String c = "abc".substring(2,3);
String d = cde.substring(1, 2);
-

- The class String includes methods for examining - individual characters of the sequence, for comparing strings, for - searching strings, for extracting substrings, and for creating a - copy of a string with all characters translated to uppercase or to - lowercase. Case mapping is based on the Unicode Standard version - specified by the Character class. -

- The Java language provides special support for the string - concatenation operator ( + ), and for conversion of - other objects to strings. String concatenation is implemented - through the StringBuilder(or StringBuffer) - class and its append method. - String conversions are implemented through the method - toString, defined by Object and - inherited by all classes in Java. For additional information on - string concatenation and conversion, see Gosling, Joy, and Steele, - The Java Language Specification. + The String class represents character strings. All + string literals in Java programs, such as "abc", are + implemented as instances of this class. +

+ Strings are constant; their values cannot be changed after they + are created. String buffers support mutable strings. + Because String objects are immutable they can be shared. For example: +

String str = "abc";

+ is equivalent to: +

char data[] = {'a', 'b', 'c'};
String str = new String(data);

+ Here are some more examples of how strings can be used: +

System.out.println("abc");
String cde = "cde";
System.out.println("abc" + cde);
String c = "abc".substring(2,3);
String d = cde.substring(1, 2);
+

+ The class String includes methods for examining + individual characters of the sequence, for comparing strings, for + searching strings, for extracting substrings, and for creating a + copy of a string with all characters translated to uppercase or to + lowercase. Case mapping is based on the Unicode Standard version + specified by the Character class. +

+ The Java language provides special support for the string + concatenation operator ( + ), and for conversion of + other objects to strings. String concatenation is implemented + through the StringBuilder(or StringBuffer) + class and its append method. + String conversions are implemented through the method + toString, defined by Object and + inherited by all classes in Java. For additional information on + string concatenation and conversion, see Gosling, Joy, and Steele, + The Java Language Specification. -

Unless otherwise noted, passing a null argument to a constructor - or method in this class will cause a NullPointerException to be - thrown. +

Unless otherwise noted, passing a null argument to a constructor + or method in this class will cause a NullPointerException to be + thrown. -

A String represents a string in the UTF-16 format - in which supplementary characters are represented by surrogate - pairs (see the section Unicode - Character Representations in the Character class for - more information). - Index values refer to char code units, so a supplementary - character uses two positions in a String. -

The String class provides methods for dealing with - Unicode code points (i.e., characters), in addition to those for - dealing with Unicode code units (i.e., char values). +

A String represents a string in the UTF-16 format + in which supplementary characters are represented by surrogate + pairs (see the section Unicode + Character Representations in the Character class for + more information). + Index values refer to char code units, so a supplementary + character uses two positions in a String. +

The String class provides methods for dealing with + Unicode code points (i.e., characters), in addition to those for + dealing with Unicode code units (i.e., char values). -

Since:

JDK1.0

See Also:

Object.toString(),
StringBuffer,
StringBuilder,
java.nio.charset.Charset

Author:

Lee Boynton, Arthur van Hoff, Martin Buchholz, Ulf Zibis

\ No newline at end of file +

Since:

JDK1.0

See Also:

Object.toString(),
StringBuffer,
StringBuilder,
java.nio.charset.Charset

Author:

Lee Boynton, Arthur van Hoff, Martin Buchholz, Ulf Zibis

\ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/javadocIG/documentationForJdkClassWithReferencesToClassesFromJavaLang.html b/java/java-tests/testData/codeInsight/javadocIG/documentationForJdkClassWithReferencesToClassesFromJavaLang.html index 5779c5b029bd..7704cc029a4e 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/documentationForJdkClassWithReferencesToClassesFromJavaLang.html +++ b/java/java-tests/testData/codeInsight/javadocIG/documentationForJdkClassWithReferencesToClassesFromJavaLang.html @@ -1,8 +1,12 @@
 java.util.List<E>
@Contract(pure = true) 
 public abstract boolean contains(
Object o
)

- Returns true if this list contains the specified element. - More formally, returns true if and only if this list contains - at least one element e such that - (o==null ? e==null : o.equals(e)). + Returns true if this list contains the specified element. + More formally, returns true if and only if this list contains + at least one element e such that + (o==null ? e==null : o.equals(e)). -

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)

 < java 1.7 >
\ 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)

 < java 1.7 >
\ 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 3f34edf1a2c9..96c0a188ef43 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/documentationForUncheckedExceptionsInSupers.html +++ b/java/java-tests/testData/codeInsight/javadocIG/documentationForUncheckedExceptionsInSupers.html @@ -1,9 +1,10 @@
 My
@Contract(pure = true)i 
 boolean contains(
Object o
) throws IOException

From interface:

java.util.Collection
- Returns true if this collection contains the specified element. - More formally, returns true if and only if this collection - contains at least one element e such that - (o==null ? e==null : o.equals(e)). + Returns true if this collection contains the specified element. + More formally, returns true if and only if this collection + 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:

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

IOException

\ 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:

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

IOException

\ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/javadocIG/doubleLt.html b/java/java-tests/testData/codeInsight/javadocIG/doubleLt.html index d55d1f2c33ff..ea23ccd2743a 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/doubleLt.html +++ b/java/java-tests/testData/codeInsight/javadocIG/doubleLt.html @@ -1,3 +1,3 @@
class C
- a << b + a << b

\ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/javadocIG/dumbMode.html b/java/java-tests/testData/codeInsight/javadocIG/dumbMode.html index e3af0fe06454..e3e44c792b7c 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/dumbMode.html +++ b/java/java-tests/testData/codeInsight/javadocIG/dumbMode.html @@ -1,4 +1,4 @@
class C

- some text + some text -

See Also:

System.out

\ No newline at end of file +

See Also:

System.out

\ 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 bf44bd2db440..036ca75b60e8 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(value = "_ -> param1", pure = true)i 
 static int valueOf(
int i
)
- myjavadoc -

Params:

i

Returns:

+ myjavadoc +

Params:

i

Returns:

\ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/javadocIG/escapeAngleBracketsInCode.html b/java/java-tests/testData/codeInsight/javadocIG/escapeAngleBracketsInCode.html index 4fa3dc914cd0..821231ca09c6 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/escapeAngleBracketsInCode.html +++ b/java/java-tests/testData/codeInsight/javadocIG/escapeAngleBracketsInCode.html @@ -1,3 +1,3 @@
class Main
-
map.compute(key, (k, v) -> (v == null) ? msg : v.concat(msg))
+
map.compute(key, (k, v) -> (v == null) ? msg : v.concat(msg))

\ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/javadocIG/escapeHtmlCodesInCodeBlock.html b/java/java-tests/testData/codeInsight/javadocIG/escapeHtmlCodesInCodeBlock.html index 5d19f0fd150c..eaa9e83e040b 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/escapeHtmlCodesInCodeBlock.html +++ b/java/java-tests/testData/codeInsight/javadocIG/escapeHtmlCodesInCodeBlock.html @@ -1,3 +1,3 @@
class Main
-
@Service
public class TestService {}
+
@Service
public class TestService {}

\ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/javadocIG/escapeHtmlInCode.html b/java/java-tests/testData/codeInsight/javadocIG/escapeHtmlInCode.html index a03ca5b09d3b..6d4e9db20650 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/escapeHtmlInCode.html +++ b/java/java-tests/testData/codeInsight/javadocIG/escapeHtmlInCode.html @@ -1,3 +1,3 @@
class Main
- Hello<World> message; + Hello<World> message;

\ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/javadocIG/escapeValues.html b/java/java-tests/testData/codeInsight/javadocIG/escapeValues.html index 9b060a90af47..c651e77d64f4 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/escapeValues.html +++ b/java/java-tests/testData/codeInsight/javadocIG/escapeValues.html @@ -1,3 +1,3 @@
class Pattern
- \W \n + \W \n

\ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/javadocIG/escapingInLiteral.html b/java/java-tests/testData/codeInsight/javadocIG/escapingInLiteral.html index b2005996a1bf..f43799b1db8d 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/escapingInLiteral.html +++ b/java/java-tests/testData/codeInsight/javadocIG/escapingInLiteral.html @@ -1,3 +1,3 @@
 Foo
int foo
- &gt; is > &lt; is < &quot; is " -

+ &gt; is > &lt; is < &quot; is " +

\ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/javadocIG/externalLinksInJavadoc.html b/java/java-tests/testData/codeInsight/javadocIG/externalLinksInJavadoc.html index 70be9553c748..b7def93604d7 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/externalLinksInJavadoc.html +++ b/java/java-tests/testData/codeInsight/javadocIG/externalLinksInJavadoc.html @@ -1,4 +1,4 @@
 C
void m()

- description - See link text + description + See link text

\ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/javadocIG/externalSnippet/Main.html b/java/java-tests/testData/codeInsight/javadocIG/externalSnippet/Main.html index 9f26edebf59e..c9bb0659d9f4 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/externalSnippet/Main.html +++ b/java/java-tests/testData/codeInsight/javadocIG/externalSnippet/Main.html @@ -1,5 +1,5 @@
class Main
-
public class Hello {
+ 
public class Hello {
   public static void main(String[] args) {
     System.out.println("Hello");
   }
diff --git a/java/java-tests/testData/codeInsight/javadocIG/externalSnippet/Malformed.html b/java/java-tests/testData/codeInsight/javadocIG/externalSnippet/Malformed.html
index 5c5347c087a4..37d5530be693 100644
--- a/java/java-tests/testData/codeInsight/javadocIG/externalSnippet/Malformed.html
+++ b/java/java-tests/testData/codeInsight/javadocIG/externalSnippet/Malformed.html
@@ -1,5 +1,5 @@
 
class Malformed
-
public void malformed() { 
+ 
public void malformed() { 
 [@replace: missing 'replacement' attribute]
 [@highlight: unsupported attribute: 'hello']
 [Markup tag or attribute expected]
diff --git a/java/java-tests/testData/codeInsight/javadocIG/externalSnippet/MultiTag.html b/java/java-tests/testData/codeInsight/javadocIG/externalSnippet/MultiTag.html
index 9d9eee90b3bb..af2438ef1ba1 100644
--- a/java/java-tests/testData/codeInsight/javadocIG/externalSnippet/MultiTag.html
+++ b/java/java-tests/testData/codeInsight/javadocIG/externalSnippet/MultiTag.html
@@ -1,5 +1,5 @@
 
class MultiTag
-
public void test() {
+ 
public void test() {
   System.out.println("xcz"); 
 }
 
diff --git a/java/java-tests/testData/codeInsight/javadocIG/externalSnippet/NoRegion.html b/java/java-tests/testData/codeInsight/javadocIG/externalSnippet/NoRegion.html index fcf091041cb8..3935d7dd5167 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/externalSnippet/NoRegion.html +++ b/java/java-tests/testData/codeInsight/javadocIG/externalSnippet/NoRegion.html @@ -1,3 +1,3 @@
class NoRegion
-
Region not found: noregion
+
Region not found: noregion

\ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/javadocIG/externalSnippet/Region.html b/java/java-tests/testData/codeInsight/javadocIG/externalSnippet/Region.html index b5b14d6eb67a..2308d6de01b7 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/externalSnippet/Region.html +++ b/java/java-tests/testData/codeInsight/javadocIG/externalSnippet/Region.html @@ -1,5 +1,5 @@
class Region
-
public static void main(String[] args) {
+ 
public static void main(String[] args) {
   ... 
   System.out.println("Hello"); 
   System.out.println("Whole line"); 
diff --git a/java/java-tests/testData/codeInsight/javadocIG/externalSnippet/RegionNoMarkup.html b/java/java-tests/testData/codeInsight/javadocIG/externalSnippet/RegionNoMarkup.html
index a2549d69a02e..f694f87bc144 100644
--- a/java/java-tests/testData/codeInsight/javadocIG/externalSnippet/RegionNoMarkup.html
+++ b/java/java-tests/testData/codeInsight/javadocIG/externalSnippet/RegionNoMarkup.html
@@ -1,5 +1,5 @@
 
class RegionNoMarkup
-
+ 
   public void test() {
     System.out.println("Region no markup");
   }
diff --git a/java/java-tests/testData/codeInsight/javadocIG/externalSnippet/TextFile.html b/java/java-tests/testData/codeInsight/javadocIG/externalSnippet/TextFile.html
index 10b6b3eeaab8..b31712e7f5ce 100644
--- a/java/java-tests/testData/codeInsight/javadocIG/externalSnippet/TextFile.html
+++ b/java/java-tests/testData/codeInsight/javadocIG/externalSnippet/TextFile.html
@@ -1,4 +1,4 @@
 
class TextFile
-
This is a text file
+ 
This is a text file
 Another line

\ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/javadocIG/externalSnippet/Unresolved.html b/java/java-tests/testData/codeInsight/javadocIG/externalSnippet/Unresolved.html index d679a64250b4..569698ee73f3 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/externalSnippet/Unresolved.html +++ b/java/java-tests/testData/codeInsight/javadocIG/externalSnippet/Unresolved.html @@ -1,3 +1,3 @@
class Unresolved
- Snippet not found: Unresolved + Snippet not found: Unresolved

\ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/javadocIG/fragmentReference.html b/java/java-tests/testData/codeInsight/javadocIG/fragmentReference.html index 181b0477ed58..1eeaf54191a6 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/fragmentReference.html +++ b/java/java-tests/testData/codeInsight/javadocIG/fragmentReference.html @@ -1,5 +1,5 @@
class Test
- ##unresolved - label - label -

See Also:

label,
label

\ No newline at end of file + ##unresolved + label + label +

See Also:

label,
label

\ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/javadocIG/htmlLinkToPackageInfo/pack/A.html b/java/java-tests/testData/codeInsight/javadocIG/htmlLinkToPackageInfo/pack/A.html index 7f95f0aae79c..dda8616ddd76 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/htmlLinkToPackageInfo/pack/A.html +++ b/java/java-tests/testData/codeInsight/javadocIG/htmlLinkToPackageInfo/pack/A.html @@ -1,3 +1,3 @@
class A
- link + link

diff --git a/java/java-tests/testData/codeInsight/javadocIG/htmlLinkWithRef.html b/java/java-tests/testData/codeInsight/javadocIG/htmlLinkWithRef.html index 2e081aa54637..8e6a2b86f5e0 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/htmlLinkWithRef.html +++ b/java/java-tests/testData/codeInsight/javadocIG/htmlLinkWithRef.html @@ -1,5 +1,5 @@
class Test
- section one - text - link up + section one + text + link up

\ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/javadocIG/ideadev2326.html b/java/java-tests/testData/codeInsight/javadocIG/ideadev2326.html index d0ddd58a152b..56ef2edbd408 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/ideadev2326.html +++ b/java/java-tests/testData/codeInsight/javadocIG/ideadev2326.html @@ -1,2 +1,3 @@
public Object read()
-throws IOException

Throws:

IOException – if an I/O error occurs while reading.

EOFException – if this source is already closed when the read() is called, or is closed during the read().

InterruptedIOException – if the reading thread is interrupted.

\ No newline at end of file +throws IOException

Throws:

IOException – if an I/O error occurs while reading.

EOFException – if this source is already closed when the read() is called, + or is closed during the read().

InterruptedIOException – if the reading thread is interrupted.

\ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/javadocIG/inlineTagIndex.html b/java/java-tests/testData/codeInsight/javadocIG/inlineTagIndex.html index 53f37696e148..911fc6e319e2 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/inlineTagIndex.html +++ b/java/java-tests/testData/codeInsight/javadocIG/inlineTagIndex.html @@ -1,6 +1,6 @@
public class Main
- start hello with values - start with values - end index. - multi line value index. + start hello with values + start with values + end index. + multi line value index.

\ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/javadocIG/inlineTagSnippet.html b/java/java-tests/testData/codeInsight/javadocIG/inlineTagSnippet.html index 2dbbdfc297b8..aeb4e77cc596 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/inlineTagSnippet.html +++ b/java/java-tests/testData/codeInsight/javadocIG/inlineTagSnippet.html @@ -1,10 +1,10 @@
class Main
- Attributes: -
System.out.println("Hello, world!");
+ Attributes:
+ 
System.out.println("Hello, world!");
 int i = 0; //empty line
 
 
 System.out.println("After two empty lines");
- See mysnippet. + See mysnippet.

\ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/javadocIG/inlineTagSnippetHighlightSeveralLines.html b/java/java-tests/testData/codeInsight/javadocIG/inlineTagSnippetHighlightSeveralLines.html index 3f053ef2b148..5e378b4ad86e 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/inlineTagSnippetHighlightSeveralLines.html +++ b/java/java-tests/testData/codeInsight/javadocIG/inlineTagSnippetHighlightSeveralLines.html @@ -1,6 +1,6 @@
public class Hello
- ... -
Objects.requireNonNull(channel, "channel is null");
+ ...
+ 
Objects.requireNonNull(channel, "channel is null");
 final var buffer = ByteBuffer.allocate(BYTES);
 put(buffer);
 buffer.flip();
diff --git a/java/java-tests/testData/codeInsight/javadocIG/inlineTagSnippetNoMarkup.html b/java/java-tests/testData/codeInsight/javadocIG/inlineTagSnippetNoMarkup.html
index 5e6d9473cea7..f3fe0000ddcd 100644
--- a/java/java-tests/testData/codeInsight/javadocIG/inlineTagSnippetNoMarkup.html
+++ b/java/java-tests/testData/codeInsight/javadocIG/inlineTagSnippetNoMarkup.html
@@ -1,5 +1,5 @@
 
class Main
- Attributes: -
System.out.println("Hello, world!");
+ Attributes:
+ 
System.out.println("Hello, world!");
 int i = 0; //empty line

\ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/javadocIG/inlineTagSnippetWithoutBody.html b/java/java-tests/testData/codeInsight/javadocIG/inlineTagSnippetWithoutBody.html index c0d6dd9e9a05..c774445ac173 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/inlineTagSnippetWithoutBody.html +++ b/java/java-tests/testData/codeInsight/javadocIG/inlineTagSnippetWithoutBody.html @@ -1,4 +1,4 @@
class Main
- Attributes: - Snippet not found: ClassName + Attributes: + Snippet not found: ClassName

\ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/javadocIG/inlineTagSummary.html b/java/java-tests/testData/codeInsight/javadocIG/inlineTagSummary.html index c11299f46f6f..25a91a5e2faf 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/inlineTagSummary.html +++ b/java/java-tests/testData/codeInsight/javadocIG/inlineTagSummary.html @@ -1,9 +1,9 @@
public class Main
- first - second - summary third - summary value forth - summary value fifth - summary value + first + second + summary third + summary value forth + summary value fifth + summary value value1 sixth

\ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/javadocIG/leadingSpacesInPre.html b/java/java-tests/testData/codeInsight/javadocIG/leadingSpacesInPre.html index b106e7acf917..0cefee9a769a 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/leadingSpacesInPre.html +++ b/java/java-tests/testData/codeInsight/javadocIG/leadingSpacesInPre.html @@ -1,11 +1,11 @@
class Main
- Some comment -
-  ---------
-  PRE-block1
-  PRE-block2
-      PRE-block3
-  PRE-block4
-  ---------
-  
+ Some comment +
+ ---------
+ PRE-block1
+ PRE-block2
+     PRE-block3
+ PRE-block4
+ ---------
+ 

\ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/javadocIG/libraryPackageDocumentation.html b/java/java-tests/testData/codeInsight/javadocIG/libraryPackageDocumentation.html index 30f583a089f5..45531a456249 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/libraryPackageDocumentation.html +++ b/java/java-tests/testData/codeInsight/javadocIG/libraryPackageDocumentation.html @@ -1,3 +1,3 @@
 com.jetbrains
- Description of com.jetbrains package + Description of com.jetbrains package

\ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/javadocIG/linkToModule.html b/java/java-tests/testData/codeInsight/javadocIG/linkToModule.html index 1d65bf5b92e1..f767c171cca2 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/linkToModule.html +++ b/java/java-tests/testData/codeInsight/javadocIG/linkToModule.html @@ -1,4 +1,4 @@
class Test
- Link to class Test. - Link to module java.base/. + Link to class Test. + Link to module java.base/.

\ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/javadocIG/linkWithLineBreak.html b/java/java-tests/testData/codeInsight/javadocIG/linkWithLineBreak.html index ec281065596f..b0ca8ca41864 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/linkWithLineBreak.html +++ b/java/java-tests/testData/codeInsight/javadocIG/linkWithLineBreak.html @@ -1,3 +1,3 @@
class Test
- Link to String. + Link to String.

\ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/javadocIG/linkWithModule.html b/java/java-tests/testData/codeInsight/javadocIG/linkWithModule.html index acc44ee8d866..8b2231492615 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/linkWithModule.html +++ b/java/java-tests/testData/codeInsight/javadocIG/linkWithModule.html @@ -1,4 +1,4 @@
class Test
- Link to class String.
- Link to class myLink.
+ Link to class String.
+ Link to class myLink.

\ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/javadocIG/literal.html b/java/java-tests/testData/codeInsight/javadocIG/literal.html index 41d97dc66ef1..1d6d6dfb9b79 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/literal.html +++ b/java/java-tests/testData/codeInsight/javadocIG/literal.html @@ -1,3 +1,3 @@
 Foo
int foo
- foo<> -

+ foo<> +

\ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/javadocIG/literalInsideCode.html b/java/java-tests/testData/codeInsight/javadocIG/literalInsideCode.html index 76ea512bddec..e8760edd4378 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/literalInsideCode.html +++ b/java/java-tests/testData/codeInsight/javadocIG/literalInsideCode.html @@ -1,3 +1,3 @@
class Foo
-
{@literal @Inject}
public class Foo
+
{@literal @Inject}
public class Foo

\ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/javadocIG/markdownCodeBlock.html b/java/java-tests/testData/codeInsight/javadocIG/markdownCodeBlock.html index 79c14e8da87d..c7736e002775 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/markdownCodeBlock.html +++ b/java/java-tests/testData/codeInsight/javadocIG/markdownCodeBlock.html @@ -1,4 +1,4 @@ -
class MarkdownCodeBlock

Java code block

new String();
System.out.println("Hello Markdown");
-

Xml code block

<hello>
<markdown />
</hello>
-

"Inline" java code block

System.out.println("Hello Markdown");
+
class MarkdownCodeBlock

Java code block

new String();
System.out.println("Hello Markdown");
+

Xml code block

<hello>
<markdown />
</hello>
+

"Inline" java code block

System.out.println("Hello Markdown");

\ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/javadocIG/markdownGeneralFeatures.html b/java/java-tests/testData/codeInsight/javadocIG/markdownGeneralFeatures.html index 66510164b669..828a3c8893c5 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/markdownGeneralFeatures.html +++ b/java/java-tests/testData/codeInsight/javadocIG/markdownGeneralFeatures.html @@ -1,2 +1,2 @@ -
class MarkdownFeatures

Title1

Title2

Title 3

italic strong code

Separate paragraph

System.out.println("Hello there");
+
class MarkdownFeatures

Title1

Title2

Title 3

italic strong code

Separate paragraph

System.out.println("Hello there");

\ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/javadocIG/markdownInlineCodeBlock.html b/java/java-tests/testData/codeInsight/javadocIG/markdownInlineCodeBlock.html index 535b954b71b6..3acda46aab1e 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/markdownInlineCodeBlock.html +++ b/java/java-tests/testData/codeInsight/javadocIG/markdownInlineCodeBlock.html @@ -1,6 +1,6 @@
class MarkdownCodeBlock

Single liner code block: - Hello world

No tags are interpreted inside them - {@link java.lang.String niceLink}

No markdown markup is interpreted inside them - _Hello_ <code>

Code span inside a link - my text with a code span!

This is a broken inline code span - `Start of broken code span

end of broken code span`

\ No newline at end of file +Hello world

No tags are interpreted inside them +{@link java.lang.String niceLink}

No markdown markup is interpreted inside them +_Hello_ <code>

Code span inside a link +my text with a code span!

This is a broken inline code span +`Start of broken code span

end of broken code span`

\ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/javadocIG/markdownJepExample.html b/java/java-tests/testData/codeInsight/javadocIG/markdownJepExample.html index fec8368d323f..b8df9d28e8ca 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/markdownJepExample.html +++ b/java/java-tests/testData/codeInsight/javadocIG/markdownJepExample.html @@ -1,17 +1,17 @@
public String longExample()

Returns a hash code value for the object. This method is - supported for the benefit of hash tables such as those provided by - java.util.HashMap.

The general contract of hashCode is:

  • Whenever it is invoked on the same object more than once during - an execution of a Java application, the hashCode method - must consistently return the same integer, provided no information - used in equals comparisons on the object is modified. - This integer need not remain consistent from one execution of an - application to another execution of the same application.
  • If two objects are equal according to the - equals method, then calling the - hashCode method on each of the two objects must produce the - same integer result.
  • It is not required that if two objects are unequal - according to the equals method, then - calling the hashCode method on each of the two objects - must produce distinct integer results. However, the programmer - should be aware that producing distinct integer results for - unequal objects may improve the performance of hash tables.

Returns:

a hash code value for this object.

Implementation
Requirements:

As far as is reasonably practical, the hashCode method defined +supported for the benefit of hash tables such as those provided by +java.util.HashMap.

The general contract of hashCode is:

  • Whenever it is invoked on the same object more than once during + an execution of a Java application, the hashCode method + must consistently return the same integer, provided no information + used in equals comparisons on the object is modified. + This integer need not remain consistent from one execution of an + application to another execution of the same application.
  • If two objects are equal according to the + equals method, then calling the + hashCode method on each of the two objects must produce the + same integer result.
  • It is not required that if two objects are unequal + according to the equals method, then + calling the hashCode method on each of the two objects + must produce distinct integer results. However, the programmer + should be aware that producing distinct integer results for + unequal objects may improve the performance of hash tables.

Returns:

a hash code value for this object.

Implementation
Requirements:

As far as is reasonably practical, the hashCode method defined by class Object returns distinct integers for distinct objects.

See Also:

Object.equals(Object),
System.identityHashCode

\ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/javadocIG/methodTypeParameter2.html b/java/java-tests/testData/codeInsight/javadocIG/methodTypeParameter2.html index cbf207265ea0..c48bb5fb9b0f 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/methodTypeParameter2.html +++ b/java/java-tests/testData/codeInsight/javadocIG/methodTypeParameter2.html @@ -1,2 +1,2 @@
<T>
-

type param

\ No newline at end of file +

type param

\ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/javadocIG/methodTypeParameter3.html b/java/java-tests/testData/codeInsight/javadocIG/methodTypeParameter3.html index 2b25db8e3799..29a7ddc05f17 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/methodTypeParameter3.html +++ b/java/java-tests/testData/codeInsight/javadocIG/methodTypeParameter3.html @@ -1,2 +1,2 @@
<T>
-extends Object, Comparable<? super T>

type param

\ No newline at end of file +extends Object, Comparable<? super T>

type param

\ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/javadocIG/pInsidePre.html b/java/java-tests/testData/codeInsight/javadocIG/pInsidePre.html index 6941b527235b..5b9f7b9a8f29 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/pInsidePre.html +++ b/java/java-tests/testData/codeInsight/javadocIG/pInsidePre.html @@ -1,7 +1,7 @@
public String field = null
-
-      foo
-      

- bar -
-

+
+     foo
+     

+ bar +
+

\ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/javadocIG/packageInfo/packageInfo.html b/java/java-tests/testData/codeInsight/javadocIG/packageInfo/packageInfo.html index c4932c71dacd..c32a2b017fa5 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/packageInfo/packageInfo.html +++ b/java/java-tests/testData/codeInsight/javadocIG/packageInfo/packageInfo.html @@ -1,3 +1,3 @@
 packageInfo
- This package contains nothing but package-info.java + This package contains nothing but package-info.java

\ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/javadocIG/packageInfoFromComment/packageInfo.html b/java/java-tests/testData/codeInsight/javadocIG/packageInfoFromComment/packageInfo.html index 8451fda3badb..c179e88fcbd9 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/packageInfoFromComment/packageInfo.html +++ b/java/java-tests/testData/codeInsight/javadocIG/packageInfoFromComment/packageInfo.html @@ -1,3 +1,3 @@
 packageInfoFromComment

- some text + some text

\ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/javadocIG/packageInfoWithCopyright/packageInfo.html b/java/java-tests/testData/codeInsight/javadocIG/packageInfoWithCopyright/packageInfo.html index b3a20e0cfc8b..9199b0948268 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/packageInfoWithCopyright/packageInfo.html +++ b/java/java-tests/testData/codeInsight/javadocIG/packageInfoWithCopyright/packageInfo.html @@ -1,3 +1,3 @@
 packageInfoWithCopyright

- This package contains nothing but package-info.java + This package contains nothing but package-info.java

\ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/javadocIG/paramInMethod.html b/java/java-tests/testData/codeInsight/javadocIG/paramInMethod.html index cd613f4503d9..60147def9f02 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/paramInMethod.html +++ b/java/java-tests/testData/codeInsight/javadocIG/paramInMethod.html @@ -1,2 +1,2 @@
<T>
-

parameter

\ No newline at end of file +

parameter

\ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/javadocIG/preInDeprecated.html b/java/java-tests/testData/codeInsight/javadocIG/preInDeprecated.html index f01ecb9a4782..a97905f23d87 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/preInDeprecated.html +++ b/java/java-tests/testData/codeInsight/javadocIG/preInDeprecated.html @@ -1,6 +1,6 @@
class Scratch

Deprecated

reason. -

-      line 1
-      line 2
-  
\ No newline at end of file +
+     line 1
+     line 2
+ 
\ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/javadocIG/preTagLeakBeforeCode.html b/java/java-tests/testData/codeInsight/javadocIG/preTagLeakBeforeCode.html index 508ee396a787..7cb6863c8728 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/preTagLeakBeforeCode.html +++ b/java/java-tests/testData/codeInsight/javadocIG/preTagLeakBeforeCode.html @@ -1,6 +1,6 @@
class Test
-
-      Beautiful pre content, inline with one of the tags. This somehow trips dectection for the @code tag.
-      So now we have a test. But god forbid you put a space at the closing tag.
- -1 text inline with the @code tag ? +
+     Beautiful pre content, inline with one of the tags. This somehow trips dectection for the @code tag.
+     So now we have a test. But god forbid you put a space at the closing tag.
+ -1 text inline with the @code tag ?

\ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/javadocIG/preTagStrictBeforeCode.html b/java/java-tests/testData/codeInsight/javadocIG/preTagStrictBeforeCode.html index 53b3439b3142..5bb57e23f8f5 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/preTagStrictBeforeCode.html +++ b/java/java-tests/testData/codeInsight/javadocIG/preTagStrictBeforeCode.html @@ -1,7 +1,7 @@
class Test
-
-    Some text with inline code
-  
-
String fullLine = "";
-
String secondFullLine = "";
+
+   Some text with inline code
+ 
+
String fullLine = "";
+
String secondFullLine = "";

\ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/javadocIG/recordParameters.html b/java/java-tests/testData/codeInsight/javadocIG/recordParameters.html index 7fd7b546d293..c0f8ef2a1ca5 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/recordParameters.html +++ b/java/java-tests/testData/codeInsight/javadocIG/recordParameters.html @@ -1,4 +1,4 @@
record Test
 extends Record
- main comment -

Params:

test – simple description
\ No newline at end of file + main comment +

Params:

test – simple description
\ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/javadocIG/syntheticEnumValues.html b/java/java-tests/testData/codeInsight/javadocIG/syntheticEnumValues.html index 25a7849e9cf6..ff5500f76194 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/syntheticEnumValues.html +++ b/java/java-tests/testData/codeInsight/javadocIG/syntheticEnumValues.html @@ -1,10 +1,11 @@
 E
@Contract(value = " -> new", pure = true)i 
 public static E[] values()

- Returns an array containing the constants of this enum - type, in the order they're declared. This method may be - used to iterate over the constants as follows: -

     for(E c : E.values())
-         System.out.println(c);
-  
+ Returns an array containing the constants of this enum + type, in the order they're declared. This method may be + used to iterate over the constants as follows: +

    for(E c : E.values())
+        System.out.println(c);
+ 
-

Returns:

an array containing the constants of this enum type, in the order they're declared

\ No newline at end of file +

Returns:

an array containing the constants of this enum + type, in the order they're declared

\ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/javadocIG/unicodeEscapes.html b/java/java-tests/testData/codeInsight/javadocIG/unicodeEscapes.html index e1f7fa73d7f0..b96e541f4931 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/unicodeEscapes.html +++ b/java/java-tests/testData/codeInsight/javadocIG/unicodeEscapes.html @@ -1,5 +1,5 @@
class Test
- a@b c@d - From A to Z - \\uD83D\\uDE42 + a@b c@d + From A to Z + \\uD83D\\uDE42

\ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/javadocIG/unknownInlineMultilineTag.html b/java/java-tests/testData/codeInsight/javadocIG/unknownInlineMultilineTag.html index 1fd784f14874..e653eae8596b 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/unknownInlineMultilineTag.html +++ b/java/java-tests/testData/codeInsight/javadocIG/unknownInlineMultilineTag.html @@ -1,4 +1,4 @@
class Main
- @unknown inline + @unknown inline tag

\ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/javadocIG/unknownInlineTag.html b/java/java-tests/testData/codeInsight/javadocIG/unknownInlineTag.html index d5a5372d2540..899d55b32b76 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/unknownInlineTag.html +++ b/java/java-tests/testData/codeInsight/javadocIG/unknownInlineTag.html @@ -1,3 +1,3 @@
class Main
- @unknown inline tag + @unknown inline tag

\ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/javadocIG/unknownTag.html b/java/java-tests/testData/codeInsight/javadocIG/unknownTag.html index 6cfe2378831f..6c413b88edb2 100644 --- a/java/java-tests/testData/codeInsight/javadocIG/unknownTag.html +++ b/java/java-tests/testData/codeInsight/javadocIG/unknownTag.html @@ -1,2 +1,2 @@
 Main
void foo()

unknown

inline tag -

unknown

inline tag2

+

unknown

inline tag2 \ No newline at end of file diff --git a/java/java-tests/testSrc/com/intellij/java/codeInsight/JavaDocumentationTest.kt b/java/java-tests/testSrc/com/intellij/java/codeInsight/JavaDocumentationTest.kt index 3b71d89d326f..a42f4a042b43 100644 --- a/java/java-tests/testSrc/com/intellij/java/codeInsight/JavaDocumentationTest.kt +++ b/java/java-tests/testSrc/com/intellij/java/codeInsight/JavaDocumentationTest.kt @@ -216,7 +216,7 @@ class JavaDocumentationTest : LightJavaCodeInsightFixtureTestCase() { val method = PsiTreeUtil.getParentOfType(myFixture.file.findElementAt(myFixture.editor.caretModel.offset), PsiMethod::class.java) val doc = JavaDocumentationProvider().generateDoc(method, null) - val expected = "

 C
public void m()
\n For example, String.String(byte[], int, int, String).\n
" + val expected = "
 C
public void m()
\n For example, String.String(byte[], int, int, String).\n
" TestCase.assertEquals(expected, doc) } @@ -276,7 +276,7 @@ class JavaDocumentationTest : LightJavaCodeInsightFixtureTestCase() { val method = PsiTreeUtil.getParentOfType(myFixture.file.findElementAt(myFixture.editor.caretModel.offset), PsiMethod::class.java) val doc = JavaDocumentationProvider().generateDoc(method, null) - val expected = "
 Bar
void foo()

From class:

Foo
\n Some doc\n

" + val expected = "
 Bar
void foo()

From class:

Foo
\n Some doc\n

" TestCase.assertEquals(expected, doc) } @@ -362,16 +362,16 @@ class JavaDocumentationTest : LightJavaCodeInsightFixtureTestCase() { val expected = """
 C
public void m()
-

Examples of expected usage: -

StringBuilder sb = new StringBuilder();
-
StringBuilder sb = new StringBuilder();
-

Continuing... -

quote nr 2;
-

Continuing... -

+       

Examples of expected usage: +

StringBuilder sb = new StringBuilder();
+
StringBuilder sb = new StringBuilder();
+

Continuing... +

quote nr 2;
+

Continuing... +

           (this.charAt(k) == ch) && (k <= fromIndex)
         
-
+       
           Unfinished blockquote
         
diff --git a/plugins/groovy/test/org/jetbrains/plugins/groovy/GroovyDocumentationTest.java b/plugins/groovy/test/org/jetbrains/plugins/groovy/GroovyDocumentationTest.java index 31df24d2ec8a..47819df85c8e 100644 --- a/plugins/groovy/test/org/jetbrains/plugins/groovy/GroovyDocumentationTest.java +++ b/plugins/groovy/test/org/jetbrains/plugins/groovy/GroovyDocumentationTest.java @@ -47,7 +47,7 @@ public class GroovyDocumentationTest extends LightJavaCodeInsightFixtureTestCase """, """
 Gr
void foo()
- Use #bar() from class Gr instead + Use #bar() from class Gr instead
"""); } @@ -62,7 +62,7 @@ public class GroovyDocumentationTest extends LightJavaCodeInsightFixtureTestCase """, """
 _
Object docs()
- check this out character sequences + check this out character sequences
"""); } @@ -86,11 +86,11 @@ public class GroovyDocumentationTest extends LightJavaCodeInsightFixtureTestCase """, """
 Main
static void docs()
- Link 1: #foo(String[]) -

- Link 2: #bar(String[]) -

- Link 3: #bar(String[],Integer) + Link 1: #foo(String[]) +

+ Link 2: #bar(String[]) +

+ Link 3: #bar(String[],Integer)

"""); } @@ -125,7 +125,7 @@ public class GroovyDocumentationTest extends LightJavaCodeInsightFixtureTestCase """, """
 Foo
String foo()
- May return null + May return null
"""); } @@ -180,7 +180,7 @@ public class GroovyDocumentationTest extends LightJavaCodeInsightFixtureTestCase """, """
 _
Object foo()
- aaa bbb ccc + aaa bbb ccc
"""); } diff --git a/plugins/kotlin/idea/tests/test/org/jetbrains/kotlin/idea/editor/quickDoc/JavadocNavigationTest.kt b/plugins/kotlin/idea/tests/test/org/jetbrains/kotlin/idea/editor/quickDoc/JavadocNavigationTest.kt index c944b34f5f18..0c92296dce8c 100644 --- a/plugins/kotlin/idea/tests/test/org/jetbrains/kotlin/idea/editor/quickDoc/JavadocNavigationTest.kt +++ b/plugins/kotlin/idea/tests/test/org/jetbrains/kotlin/idea/editor/quickDoc/JavadocNavigationTest.kt @@ -32,7 +32,7 @@ class JavadocNavigationTest() : KotlinLightCodeInsightFixtureTestCase() { Assert.assertEquals( """
class ExtMethod
 extends Super
- directory + directory

""", docInfo) } diff --git a/plugins/kotlin/idea/tests/testData/editor/quickDoc/JavaClassUsedInKotlin.kt b/plugins/kotlin/idea/tests/testData/editor/quickDoc/JavaClassUsedInKotlin.kt index 1c3059588dfb..3ccbec630c1d 100644 --- a/plugins/kotlin/idea/tests/testData/editor/quickDoc/JavaClassUsedInKotlin.kt +++ b/plugins/kotlin/idea/tests/testData/editor/quickDoc/JavaClassUsedInKotlin.kt @@ -3,5 +3,5 @@ fun testing() { } //INFO:
public class SomeClass<T extends List>
-//INFO: Some Java Class -//INFO:

Type parameters:

<T>
+//INFO: Some Java Class +//INFO:

Type parameters:

<T>
diff --git a/plugins/kotlin/idea/tests/testData/editor/quickDoc/JavaDocFromOverridenClass.kt b/plugins/kotlin/idea/tests/testData/editor/quickDoc/JavaDocFromOverridenClass.kt index a36c2298f87e..aadc212e9e22 100644 --- a/plugins/kotlin/idea/tests/testData/editor/quickDoc/JavaDocFromOverridenClass.kt +++ b/plugins/kotlin/idea/tests/testData/editor/quickDoc/JavaDocFromOverridenClass.kt @@ -5,5 +5,5 @@ class A : OverrideMe() { //INFO:
protected open fun overrideMe(): Unit

From class:

OverrideMe
-//INFO: Some comment +//INFO: Some comment //INFO:

Overrides:

overrideMe in class OverrideMe

 A
diff --git a/plugins/kotlin/idea/tests/testData/editor/quickDoc/JavaDocFromOverridenInterface.kt b/plugins/kotlin/idea/tests/testData/editor/quickDoc/JavaDocFromOverridenInterface.kt index edb591686897..da93ae836ead 100644 --- a/plugins/kotlin/idea/tests/testData/editor/quickDoc/JavaDocFromOverridenInterface.kt +++ b/plugins/kotlin/idea/tests/testData/editor/quickDoc/JavaDocFromOverridenInterface.kt @@ -5,5 +5,5 @@ class A : OverrideMe { //INFO:
public open fun overrideMe(): Unit

From interface:

OverrideMe
-//INFO: Some comment +//INFO: Some comment //INFO:

Specified by:

overrideMe in interface OverrideMe

 A
diff --git a/plugins/kotlin/idea/tests/testData/editor/quickDoc/JavaMethodUsedInKotlin.kt b/plugins/kotlin/idea/tests/testData/editor/quickDoc/JavaMethodUsedInKotlin.kt index 4bbd67428cda..bdc7d68842c0 100644 --- a/plugins/kotlin/idea/tests/testData/editor/quickDoc/JavaMethodUsedInKotlin.kt +++ b/plugins/kotlin/idea/tests/testData/editor/quickDoc/JavaMethodUsedInKotlin.kt @@ -5,5 +5,5 @@ fun ktTest() { //INFO:
 Test
@Contract(value = "_ -> new", pure = true)i 
 //INFO: @NotNulli 
 //INFO: public static Object[] foo(
String param
)
-//INFO: Java Method +//INFO: Java Method //INFO:
diff --git a/plugins/kotlin/idea/tests/testData/editor/quickDoc/JavaMethodUsedInKotlinInParen.kt b/plugins/kotlin/idea/tests/testData/editor/quickDoc/JavaMethodUsedInKotlinInParen.kt index 58f4496f8023..25a1db82a835 100644 --- a/plugins/kotlin/idea/tests/testData/editor/quickDoc/JavaMethodUsedInKotlinInParen.kt +++ b/plugins/kotlin/idea/tests/testData/editor/quickDoc/JavaMethodUsedInKotlinInParen.kt @@ -6,5 +6,5 @@ fun ktTestWithParen() { //INFO: @NotNulli  //INFO: public static Object[] foo(
String str, //INFO: int num
)
-//INFO: Java Method +//INFO: Java Method //INFO: