mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 16:39:37 +07:00
captured wildcards: don't open unpredictably, treat as type, not type argument (IDEA-148348)
This commit is contained in:
@@ -19,7 +19,7 @@ class Test {
|
||||
|
||||
|
||||
public static <T> BigDecimal add(Collection<T> objectsThatHaveBigDecimals, Function<T, ? extends BigDecimal> functionToGet) {
|
||||
return objectsThatHaveBigDecimals == null ? null : objectsThatHaveBigDecimals.stream().map(functionToGet).reduce(null, Test::add);
|
||||
return objectsThatHaveBigDecimals == null ? null : objectsThatHaveBigDecimals.stream().map(functionToGet).reduce(null, <error descr="Bad return type in method reference: cannot convert java.math.BigDecimal to ? extends java.math.BigDecimal">Test::add</error>);
|
||||
}
|
||||
|
||||
public static BigDecimal add(BigDecimal... sequence) {
|
||||
|
||||
Reference in New Issue
Block a user