mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-17 20:11:25 +07:00
method reference: exact reference check fixed for methods with the signatures without generics (IDEA-127765)
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import java.util.Map;
|
||||
import java.util.Optional;
|
||||
import java.util.function.Function;
|
||||
import java.util.function.Predicate;
|
||||
|
||||
class IDEA127765 {
|
||||
void a(final Map<String, Optional<Double>> allValues, final Function<Optional<Double>, Double> get) {
|
||||
final Map<String, Double> presentValues = transformValues(filterValues(allValues, Optional::isPresent), get);
|
||||
}
|
||||
|
||||
public static <K, V1, V2> Map<K, V2> transformValues(Map<K, V1> fromMap, Function<? super V1, V2> function) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static <K, V> Map<K, V> filterValues(Map<K, V> unfiltered, Predicate<? super V> valuePredicate) {
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user