chaokunyang commented on code in PR #3021:
URL: https://github.com/apache/fory/pull/3021#discussion_r2601057728
##########
java/fory-core/src/main/java/org/apache/fory/annotation/ForyField.java:
##########
@@ -28,9 +28,31 @@
@Target({ElementType.FIELD, ElementType.METHOD})
public @interface ForyField {
- /** Whether field is nullable, default false. */
+ /**
+ * Field tag ID for schema evolution mode (REQUIRED).
+ *
+ * <ul>
+ * <li>When >= 0: Uses this numeric ID instead of field name string for
compact encoding
Review Comment:
should be `-1` for field name based encoding, `0` can be used as as tag id
##########
java/fory-core/src/main/java/org/apache/fory/annotation/ForyField.java:
##########
@@ -28,9 +28,31 @@
@Target({ElementType.FIELD, ElementType.METHOD})
public @interface ForyField {
- /** Whether field is nullable, default false. */
+ /**
+ * Field tag ID for schema evolution mode (REQUIRED).
+ *
+ * <ul>
+ * <li>When >= 0: Uses this numeric ID instead of field name string for
compact encoding
Review Comment:
should be `-1` for field name based encoding, `0` can be used as as tag id
--
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]