This commit is contained in:
Gary Gregory 2021-05-25 13:36:29 -04:00
parent e8fe1a941c
commit 2d86ac6ecf
2 changed files with 2 additions and 6 deletions

View File

@ -478,9 +478,7 @@ public class Streams {
@Override
public Function<List<O>, O[]> finisher() {
return list -> {
return list.toArray(ArrayUtils.newInstance(elementType, list.size()));
};
return list -> list.toArray(ArrayUtils.newInstance(elementType, list.size()));
}
@Override

View File

@ -104,9 +104,7 @@ public class Streams {
@Override
public Function<List<O>, O[]> finisher() {
return list -> {
return list.toArray(ArrayUtils.newInstance(elementType, list.size()));
};
return list -> list.toArray(ArrayUtils.newInstance(elementType, list.size()));
}
@Override