extract method: do not suggest to replace duplicates if candidates intersects with extracted method

This commit is contained in:
anna
2012-12-17 21:45:38 +01:00
parent 77e8d52790
commit 746ed966f9
4 changed files with 28 additions and 2 deletions
@@ -0,0 +1,8 @@
class Test {
public static void main(String[] args) {
<selection>System.out.println("hello");
System.out.println("hello");</selection>
System.out.println("hello");
}
}
@@ -0,0 +1,12 @@
class Test {
public static void main(String[] args) {
newMethod();
System.out.println("hello");
}
private static void newMethod() {
System.out.println("hello");
System.out.println("hello");
}
}