chaokunyang commented on code in PR #2852:
URL: https://github.com/apache/fory/pull/2852#discussion_r2484256704
##########
java/fory-core/src/main/java/org/apache/fory/Fory.java:
##########
@@ -176,6 +177,9 @@ public Fory(ForyBuilder builder, ClassLoader classLoader) {
@Override
public void register(Class<?> cls) {
+ if (depth >= 0) {
Review Comment:
Seems this is not needed, we've checked it in `TypeResolver#register`
--
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]