find method duplicates: correct this according to the replacement place ( IDEA-22960 )

This commit is contained in:
anna
2010-05-30 19:50:01 +04:00
parent 559a74ac8f
commit 67ef43adcc
4 changed files with 36 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
public class BaseClass extends JComponent {
}
class SubClass extends BaseClass {
void a() {
System.out.println(getLocation());
}
}
class Util {
public static void met<caret>hod(BaseClass base) {
System.out.println(base.getLocation());
}
}

View File

@@ -0,0 +1,14 @@
public class BaseClass extends JComponent {
}
class SubClass extends BaseClass {
void a() {
Util.method(SubClass.this);
}
}
class Util {
public static void method(BaseClass base) {
System.out.println(base.getLocation());
}
}