mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 03:21:12 +07:00
[java] fix test data after adding javadoc formatting to refactorings
GitOrigin-RevId: a5e3b115d39c59984e40ca8726b4a2f658292eba
This commit is contained in:
committed by
intellij-monorepo-bot
parent
d6f3b1ec85
commit
375a130e11
@@ -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
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
// "Generate overloaded method with default parameter values" "true"
|
||||
class Test {
|
||||
/**
|
||||
*/
|
||||
/**
|
||||
*
|
||||
*/
|
||||
void foo() {
|
||||
foo(0);
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// "Convert to local" "true"
|
||||
class Temp {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
void foo() {
|
||||
int x = 5;
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
class Test {
|
||||
/**
|
||||
* foo comment
|
||||
*
|
||||
* @param param
|
||||
*/
|
||||
void foo(Param param) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -1647,4 +1647,23 @@ public class Test {
|
||||
""".trimIndent()
|
||||
)
|
||||
}
|
||||
|
||||
fun testEmptyJavadoc() {
|
||||
doTextTest(
|
||||
"""
|
||||
/**
|
||||
*/
|
||||
public class Main {
|
||||
}
|
||||
""".trimIndent(),
|
||||
|
||||
"""
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public class Main {
|
||||
}
|
||||
""".trimIndent()
|
||||
)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user