Lambdas.
This commit is contained in:
parent
e8fe1a941c
commit
2d86ac6ecf
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue