extract method: do not include comments when they were not included in selection; leave assignment expressions untouched? (IDEA-72730 )

This commit is contained in:
anna
2011-08-04 13:53:30 +04:00
parent 139843fe5b
commit 6e3ca2f9e1
4 changed files with 21 additions and 1 deletions

View File

@@ -0,0 +1,6 @@
class Test {
void bar(){}
void foo() {
<selection>bar();</selection>//some comment here
}
}

View File

@@ -0,0 +1,10 @@
class Test {
void bar(){}
void foo() {
newMethod();//some comment here
}
private void newMethod() {
bar();
}
}