mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
extract method: do not suggest to replace duplicates if candidates intersects with extracted method
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
+12
@@ -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");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user