vavr-io / vavr-jackson

Jackson datatype module for Vavr
Apache License 2.0
99 stars 38 forks source link

Remove JavaType as input argument of emulatedJavaType() #160

Closed mincong-h closed 4 years ago

mincong-h commented 4 years ago

The main motivation is to avoid type casting. Each serializer receives a meaningful Java type during it's construction: collection-like type, map-like type. By storing this information properly, we can avoid type casting which could be unsafe.