mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-26 03:51:12 +07:00
14 lines
373 B
Java
14 lines
373 B
Java
// "Replace lambda with method reference" "true"
|
|
import java.util.concurrent.atomic.AtomicReference;
|
|
import java.util.function.Function;
|
|
import java.util.stream.Stream;
|
|
|
|
class Test {
|
|
|
|
public <T> void some(Stream<AtomicReference<T>> stream) {
|
|
stream.map((Function<AtomicReference<T>, ? extends Class<? extends AtomicReference>>) AtomicReference<T>::getClass);
|
|
}
|
|
|
|
|
|
}
|