Skip to content

Commit

Permalink
Fix #8
Browse files Browse the repository at this point in the history
  • Loading branch information
Morten committed Jul 18, 2018
1 parent c2ccffb commit 61a970a
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,14 @@ private <T> PropertyChange<T> transform(PropertyChange<T> change)
final Class<?> type = change.getPropertyType();
if (Collection.class.isAssignableFrom(type))
{
final Object oldRefColl = transform(type, (Collection<T>)change.getNewValue());
final Object newRefColl = transform(type, (Collection<T>)change.getOldValue());
final Object oldRefColl = transform(type, change.getOldValue());
final Object newRefColl = transform(type, change.getNewValue());
return new PropertyChange(change.getPropertyName(), change.getPropertyType(), oldRefColl, newRefColl);
}
else if (Map.class.isAssignableFrom(type))
{
final Object oldRefColl = transform(type, (Map)change.getNewValue());
final Object newRefColl = transform(type, (Map)change.getOldValue());
final Object oldRefColl = transform(type, change.getOldValue());
final Object newRefColl = transform(type, change.getNewValue());
return new PropertyChange(change.getPropertyName(), change.getPropertyType(), oldRefColl, newRefColl);
}
else if (isEntity(type))
Expand Down

0 comments on commit 61a970a

Please sign in to comment.