mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-29 08:20:55 +07:00
10 lines
381 B
Java
10 lines
381 B
Java
|
|
import java.util.function.IntFunction;
|
|
import java.util.stream.Stream;
|
|
|
|
class MyTest {
|
|
private static void getArguments(final Stream<Class<String>> classStream) {
|
|
final Class<?>[] classes = classStream.toArray(((<warning descr="Casting '(value) -> {...}' to 'IntFunction<Class<?>[]>' is redundant">IntFunction<Class<?>[]></warning>) (value) -> new Class<?>[value]) );
|
|
}
|
|
}
|