Files
openide/java/java-tests/testData/codeInsight/folding/JavadocComments.java
Artemiy Sartakov 562b4afd1a CommentFoldingUtil: do not add ellipsis if header includes all javadoc content (IDEA-216380)
GitOrigin-RevId: 677371c852f49a64d0f2ca008280152c953494bb
2019-07-26 12:05:43 +03:00

91 lines
2.2 KiB
Java

<fold text='/** outer class javadoc ...*/'>/**
* outer class javadoc
* javadoc body
*/</fold>
class Test {
<fold text='/** method javadoc ...*/'>/**
* method javadoc
* javadoc body
*
* @param i
*/</fold>
void foo(int i) <fold text='{...}'>{
<fold text='/** method var javadoc ...*/'>/**
* method var javadoc
* javadoc body
*/</fold>
int j = i;
}</fold>
<fold text='/**ill-formed javadoc */'>/**ill-formed javadoc
*/</fold>
void bar(char c) <fold text='{}'>{
}</fold>
boolean b1 = true; <fold text='/** javadoc with code on the same line */'>/** javadoc with code on the same line */</fold> boolean b2 = false; <fold text='/** second javadoc with code on the same line */'>/** second javadoc with code on the same line */</fold>
<fold text='/** first line ...*/'>/** first line
* second line
*/</fold>
void illFormedJavaDocMultilines() <fold text='{}'>{
}</fold>
<fold text='/** first line */'>/** first line
*
*
*/</fold>
void javaDocWithTextOnlyOnFirstLine() <fold text='{}'>{
}</fold>
<fold text='/** second line */'>/**
* second line
*
*/</fold>
void javaDocWithTextOnlyOnSecondLine() <fold text='{}'>{
}</fold>
<fold text='/***/'>/**
*/</fold>
void emptyJavadoc() <fold text='{}'>{
}</fold>
<fold text='/***/'>/***/</fold>
void oneLineEmptyJavadoc() <fold text='{}'>{
}</fold>
<fold text='/** dangling javadoc ...*/'>/**
* dangling javadoc
* javadoc body
*/</fold>
<fold text='/** inner class javadoc ...*/'>/**
* inner class javadoc
* javadoc body
*/</fold>
class Inner <fold text='{...}'>{
<fold text='/** javadoc for method in inner class ...*/'>/**
* javadoc for method in inner class
* javadoc body
*/</fold>
void foo() <fold text='{...}'>{
<fold text='/** javadoc for class in method ...*/'>/**
* javadoc for class in method
* javadoc body
*/</fold>
class MethodInner <fold text='{...}'>{
<fold text='/** javadoc for method inside class defined in method ...*/'>/**
* javadoc for method inside class defined in method
* javadoc body
*/</fold>
void bar() <fold text='{}'>{
}</fold>
}</fold>
}</fold>
}</fold>
}