Asuka-star commented on PR #3061:
URL: https://github.com/apache/fory/pull/3061#issuecomment-3674333821
> Let's keep it simple, just remove this warning message. We already printed
warning messages in :
>
> ```
> private Serializer createSerializer(Class<?> cls) {
> DisallowedList.checkNotInDisallowedList(cls.getName());
> if (!isSecure(cls)) {
> throw new InsecureException(generateSecurityMsg(cls));
> } else {
> if (!fory.getConfig().suppressClassRegistrationWarnings()
> && !Functions.isLambda(cls)
> && !ReflectionUtils.isJdkProxy(cls)
> && !extRegistry.registeredClassIdMap.containsKey(cls)
> && !shimDispatcher.contains(cls)) {
> LOG.warn(generateSecurityMsg(cls));
> }
> }
> ```
>
> Could you update this function: if TypeChecker is set, we skip print
warning message
好的感谢指导♥️,由于extRegistry.typeChecker存在默认值,所以我再classResolver里面新增一个标识符来判断是否设置了TypeChecker
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]