safe delete: do not show conflicts about method reference if it occurs in the argument to be deleted (IDEA-163964)

This commit is contained in:
Anna.Kozlova
2016-11-15 18:11:31 +01:00
parent 39aa837db3
commit e64e0ac67b
4 changed files with 54 additions and 9 deletions
@@ -0,0 +1,13 @@
import java.util.function.Consumer;
public class Subst {
void test1() {
test2(Subst::bar);
}
private static void bar(Object o) {
}
void test2(final Consumer<Object> consu<caret>mer) {}
}
@@ -0,0 +1,13 @@
import java.util.function.Consumer;
public class Subst {
void test1() {
test2();
}
private static void bar(Object o) {
}
void test2() {}
}