[jOOQ/jOOQ#10775] Collection.toArray(IntFunction) is JDK 11 only

This commit is contained in:
Lukas Eder 2020-10-22 09:49:05 +02:00
parent b64d438ab6
commit a938481008

View File

@ -63,7 +63,7 @@ public final class Rows {
public static <T> Collector<T, ?, RowN[]> collectingArray(
Function<? super T, ?>... functions
) {
return Collectors.collectingAndThen(collecting(functions), l -> l.toArray(RowN[]::new));
return Collectors.collectingAndThen(collecting(functions), l -> l.toArray(new RowN[0]));
}
/**