[java-highlighting] Most of method-reference problems migrated

Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)

GitOrigin-RevId: 03528950826974c1875e89868dc335c88c2e8149
This commit is contained in:
Tagir Valeev
2025-02-04 11:32:57 +01:00
committed by intellij-monorepo-bot
parent 17651f8c19
commit 577de68f8a
14 changed files with 256 additions and 304 deletions

View File

@@ -4,7 +4,7 @@ import java.util.function.Function;
class Main {
{
List<Optional<Function<String, String>>> list = asList(of(<error descr="Object is not a functional interface">Main::identity</error>));
List<Optional<Function<String, String>>> list = asList(of(<error descr="java.lang.Object is not a functional interface">Main::identity</error>));
}
static <T> List<T> asList(T a) { return null;}

View File

@@ -1,7 +1,7 @@
class Test {
{
asList(<error descr="Target type of a lambda conversion must be an interface">o -> {}</error>, 1, 2, 3);
asList(<error descr="Integer is not a functional interface">Test::foo</error>, 1, 2, 3);
asList(<error descr="java.lang.Integer is not a functional interface">Test::foo</error>, 1, 2, 3);
}
void foo() {}