change signature detection: ignore changes in return type when no other changes were made; include new return type in result change info; leave suggestion when method become unused due to return type deletion

This commit is contained in:
anna
2011-11-08 15:58:07 +01:00
parent 4937c30a71
commit c443915ed6
9 changed files with 91 additions and 11 deletions

View File

@@ -0,0 +1,8 @@
class Test {
void foo() {
bar();
}
void bar(<caret>){
}
}

View File

@@ -0,0 +1,8 @@
class Test {
void foo() {
bar();
}
boolean bar(int param){
}
}

View File

@@ -0,0 +1,9 @@
package refactoring.changeSignatureGesture;
class TestMeabracadabra {
TestMeabracadabra(<caret>){
}
public static void main(String[] args) {
TestMeabracadabra t = new TestMeabracadabra();
}
}

View File

@@ -0,0 +1,9 @@
package refactoring.changeSignatureGesture;
class TestMeabracadabra {
TestMeabracadabra(int param){
}
public static void main(String[] args) {
TestMeabracadabra t = new TestMeabracadabra();
}
}

View File

@@ -0,0 +1,5 @@
package refactoring.changeSignatureGesture;
class TestMeabracadabra {
private TestMeabracadabra(<caret>){
}
}