This commit is contained in:
Looly
2020-09-05 18:00:25 +08:00
parent dba35b9395
commit cbbf4671ba
4 changed files with 81 additions and 51 deletions

View File

@@ -134,7 +134,7 @@ public class CglibUtil {
public static <S, T> List<T> copyList(Collection<S> source, Supplier<T> target, Converter converter, BiConsumer<S, T> callback) {
return source.stream().map(s -> {
T t = target.get();
copy(source, t, converter);
copy(s, t, converter);
if (callback != null) {
callback.accept(s, t);
}