mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 18:09:38 +07:00
testdata for IDEA-153701
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.function.Consumer;
|
||||
|
||||
|
||||
abstract class CallbackCast {
|
||||
String send(Number... actions) {
|
||||
return executeBlocking(callback -> processNumbers(Arrays.asList(actions), (Runnable) callback));
|
||||
}
|
||||
|
||||
public <T> T executeBlocking(Statement<T> statement) {
|
||||
return null;
|
||||
}
|
||||
|
||||
abstract <T extends Number> List<T> processNumbers(List<T> actions, Runnable callback);
|
||||
}
|
||||
|
||||
interface Statement<T> {
|
||||
void execute(Consumer<T> callback);
|
||||
}
|
||||
Reference in New Issue
Block a user