mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-05-19 23:26:50 +00:00
chore[protocol]: code comments
This commit is contained in:
@@ -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;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user