Closed mincong-h closed 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.
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.