[java] fix test data after adding javadoc formatting to refactorings

GitOrigin-RevId: a5e3b115d39c59984e40ca8726b4a2f658292eba
This commit is contained in:
Roman Ivanov
2021-12-13 12:24:18 +01:00
committed by intellij-monorepo-bot
parent d6f3b1ec85
commit 375a130e11
6 changed files with 27 additions and 4 deletions

View File

@@ -134,7 +134,7 @@ public class JDComment {
}
}
else if (sb.length() == 0 && !StringUtil.isEmpty(myEndLine)) {
sb.append('\n').append('*').append('\n');
sb.append(prefix).append('\n');
}
if (myMultiLineComment && myFormatter.getSettings().JD_DO_NOT_WRAP_ONE_LINE_COMMENTS

View File

@@ -1,7 +1,8 @@
// "Generate overloaded method with default parameter values" "true"
class Test {
/**
*/
/**
*
*/
void foo() {
foo(0);
}

View File

@@ -1,6 +1,7 @@
// "Convert to local" "true"
class Temp {
/**
*
*/
void foo() {
int x = 5;

View File

@@ -1,6 +1,7 @@
class Test {
/**
* foo comment
*
* @param param
*/
void foo(Param param) {

View File

@@ -1,8 +1,9 @@
class Test {
/**
* foo comment
*
* @param param
* @param s1 long1 description1
* @param s1 long1 description1
*/
void foo(Param param, String s1) {
bar(param.s(), s1);

View File

@@ -1647,4 +1647,23 @@ public class Test {
""".trimIndent()
)
}
fun testEmptyJavadoc() {
doTextTest(
"""
/**
*/
public class Main {
}
""".trimIndent(),
"""
/**
*
*/
public class Main {
}
""".trimIndent()
)
}
}