DozerMapper/dozer — pull request #47 by sebastiencaille (2013-01-04 15:34:41+00:00)
Title: Patch for #40

Hello,
I made a patch for #40 Performance: Identity conversion of primitive array could be more efficient

However, it does not take the custom converters into account. That is, I used the same policy than in addToPrimitiveArray (even if its code looks wrong to me - especially the toValue = srcCollectionValue).

In my opinion, copy-by-reference should not be used if there is a custom converter or if the src and dest types are not compatible. Actually, I tried to enable the copy-by-reference for the String, Long, Integer, ... and it breaks a lot of test cases. Should I open another issue for this?

Regards
/Sebastien