mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 18:28:55 +07:00
workaround for opened captures (IDEA-132717)
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import java.util.*;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
abstract class Example {
|
||||
abstract <E> Optional<E> findById(Class<E> type);
|
||||
void main(Stream<Class<? extends String>> stream) {
|
||||
stream.map(this::findById).map(Optional::get);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user