chore[protocol]: code comments

This commit is contained in:
sun
2023-10-11 19:17:17 +08:00
parent 302433c1a1
commit 3ff774074c
3 changed files with 13 additions and 0 deletions
@@ -15,6 +15,9 @@ package com.zfoo.protocol.anno;
import java.lang.annotation.*;
/**
* EN: Make the fields of the old and new protocols compatible in different version
* CN: 让新老协议的字段前后兼容
*
* @author godotg
*/
@Documented
@@ -15,6 +15,9 @@ package com.zfoo.protocol.anno;
import java.lang.annotation.*;
/**
* EN: Generate comments in other languages
* CN: 生成其它语言的注释
*
* @author meiw
*/
@Documented
@@ -15,6 +15,9 @@ package com.zfoo.protocol.anno;
import java.lang.annotation.*;
/**
* EN: Unique protocol number
* CN: 唯一的协议号
*
* @author meiw
*/
@Documented
@@ -24,6 +27,10 @@ public @interface Protocol {
short id() default 0;
/**
* EN: Use Javassist bytecode to enhance serialization of the protocol
* CN: 使用Javassist字节码增强协议的序列化
*/
boolean enhance() default true;
}