mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-17 02:14:58 +00:00
chore[protocol]: code comments
This commit is contained in:
1 parent
302433c1a1
commit
3ff774074c
3 files changed
+13
No files matched your search
@@ -15,6 +15,9 @@ package com.zfoo.protocol.anno;
|
|||||||
import java.lang.annotation.*;
|
import java.lang.annotation.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* EN: Make the fields of the old and new protocols compatible in different version
|
||||||
|
* CN: 让新老协议的字段前后兼容
|
||||||
|
*
|
||||||
* @author godotg
|
* @author godotg
|
||||||
*/
|
*/
|
||||||
@Documented
|
@Documented
|
||||||
|
|||||||
@@ -15,6 +15,9 @@ package com.zfoo.protocol.anno;
|
|||||||
import java.lang.annotation.*;
|
import java.lang.annotation.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* EN: Generate comments in other languages
|
||||||
|
* CN: 生成其它语言的注释
|
||||||
|
*
|
||||||
* @author meiw
|
* @author meiw
|
||||||
*/
|
*/
|
||||||
@Documented
|
@Documented
|
||||||
|
|||||||
@@ -15,6 +15,9 @@ package com.zfoo.protocol.anno;
|
|||||||
import java.lang.annotation.*;
|
import java.lang.annotation.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* EN: Unique protocol number
|
||||||
|
* CN: 唯一的协议号
|
||||||
|
*
|
||||||
* @author meiw
|
* @author meiw
|
||||||
*/
|
*/
|
||||||
@Documented
|
@Documented
|
||||||
@@ -24,6 +27,10 @@ public @interface Protocol {
|
|||||||
|
|
||||||
short id() default 0;
|
short id() default 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* EN: Use Javassist bytecode to enhance serialization of the protocol
|
||||||
|
* CN: 使用Javassist字节码增强协议的序列化
|
||||||
|
*/
|
||||||
boolean enhance() default true;
|
boolean enhance() default true;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user