local variables should be preferred over factory methods no matter the name end matching degree

This commit is contained in:
peter
2013-03-10 12:07:25 +01:00
parent bbfffa7865
commit 07e0385eca
7 changed files with 45 additions and 13 deletions
@@ -3,7 +3,7 @@ public class AnotherTestClass {
test(getnu<caret>);
}
private static void test(int i, int j) {
private static void test(int i) {
}
public static NumberProvider getNumProvider() {
@@ -0,0 +1,9 @@
class Foo {
String myFoo;
String myBar;
String getFoo() {
return my<caret>
}
}
@@ -0,0 +1,16 @@
public class Aaaaaaa {
void foo(ActionEvent e) {
bar(<caret>);
}
void bar(ActionEvent event) {
}
}
class ActionEvent {
static ActionEvent createEvent() {
}
}