Skip to content

Commit

Permalink
feat: upgrade shapeshift to 0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Idane committed Jul 21, 2022
1 parent 34e1551 commit 401dfad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion crud-framework-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

<properties>
<jar-name>crud-framework-core</jar-name>
<shapeshift.version>0.3.0</shapeshift.version>
<shapeshift.version>0.4.0</shapeshift.version>
</properties>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -398,12 +398,7 @@ public <From, To> void fill(From fromObject, To toObject) {
@Override
@WrapException(CrudTransformationException.class)
public <From, To> List<To> fillMany(List<From> fromObjects, Class<To> toClazz) {
List<To> toObjects = new ArrayList<To>();
for (From fromObject : fromObjects) {
toObjects.add(crudHelperProxy.fill(fromObject, toClazz));
}

return toObjects;
return shapeShift.mapCollection(fromObjects, toClazz);
}

@Override
Expand Down

0 comments on commit 401dfad

Please sign in to comment.