mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
Java: Include trailing comments into selected fragment when extracting method (IDEA-180172)
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
class CommentAfterSelectedFragment {
|
||||
foo(boolean debugMode) {
|
||||
int i= 0;
|
||||
|
||||
i = newMethod(debugMode, i);
|
||||
System.out.println(i);
|
||||
}
|
||||
|
||||
private int newMethod(boolean debugMode, int i) {
|
||||
if (debugMode) {
|
||||
i = 1;
|
||||
} /* comment */
|
||||
return i;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user