mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-02 22:51:01 +07:00
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only) GitOrigin-RevId: 03528950826974c1875e89868dc335c88c2e8149
19 lines
489 B
Java
19 lines
489 B
Java
import java.util.List;
|
|
import java.util.Optional;
|
|
import java.util.function.Function;
|
|
|
|
class Main {
|
|
{
|
|
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;}
|
|
static <T> List<T> asList(Optional a) { return null;}
|
|
|
|
static <T> Optional<T> of(T value) { return null;}
|
|
|
|
public static String identity(final String s) {
|
|
return s;
|
|
}
|
|
|
|
} |