mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
testdata for javac resolution order: to be merged in java 9 update
This commit is contained in:
+26
@@ -0,0 +1,26 @@
|
||||
|
||||
import java.util.List;
|
||||
import java.util.function.Consumer;
|
||||
import java.util.function.Function;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
class MyTest
|
||||
{
|
||||
private final static Logger LOGGER = Logger.getLogger(MyTest.class.getName());
|
||||
|
||||
public static void test(List<List<String>> testList) {
|
||||
testList.forEach( MyTest.bind(MyTest.cast(LOGGER::info), iterable -> ""));
|
||||
}
|
||||
|
||||
private static <A1, A2> TestConsumer<A1, A2> bind(Consumer<? super A2> delegate, Function<A1, A2> function) {
|
||||
return null;
|
||||
}
|
||||
|
||||
private static <C1> Consumer<C1> cast(Consumer<C1> consumer)
|
||||
{
|
||||
return consumer;
|
||||
}
|
||||
|
||||
private interface TestConsumer<T1, T2> extends Consumer<T1> { }
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user