chaokunyang commented on code in PR #1553: URL: https://github.com/apache/incubator-fury/pull/1553#discussion_r1577735041
########## java/fury-core/src/main/java/org/apache/fury/serializer/collection/AbstractMapSerializer.java: ########## @@ -382,13 +382,13 @@ public static void xwriteElements(Fury fury, MemoryBuffer buffer, Map value) { private Tuple2<GenericType, GenericType> getKVGenericType(GenericType genericType) { Tuple2<GenericType, GenericType> genericTypes = partialGenericKVTypeMap.get(genericType); if (genericTypes == null) { - TypeToken<?> typeToken = genericType.getTypeToken(); - if (!MAP_TYPE.isSupertypeOf(typeToken)) { + TypeRef<?> typeRef = genericType.getTypeToken(); Review Comment: ```suggestion TypeRef<?> typeRef = genericType.getTypeRef(); ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@fury.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@fury.apache.org For additional commands, e-mail: commits-h...@fury.apache.org