Skip to content

Commit

Permalink
chore[protocol]: code comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jaysunxiao committed Oct 11, 2023
1 parent 302433c commit 3ff7740
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions protocol/src/main/java/com/zfoo/protocol/anno/Compatible.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
import java.lang.annotation.*;

/**
* EN: Make the fields of the old and new protocols compatible in different version
* CN: 让新老协议的字段前后兼容
*
* @author godotg
*/
@Documented
Expand Down
3 changes: 3 additions & 0 deletions protocol/src/main/java/com/zfoo/protocol/anno/Note.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
import java.lang.annotation.*;

/**
* EN: Generate comments in other languages
* CN: 生成其它语言的注释
*
* @author meiw
*/
@Documented
Expand Down
7 changes: 7 additions & 0 deletions protocol/src/main/java/com/zfoo/protocol/anno/Protocol.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
import java.lang.annotation.*;

/**
* EN: Unique protocol number
* CN: 唯一的协议号
*
* @author meiw
*/
@Documented
Expand All @@ -24,6 +27,10 @@

short id() default 0;

/**
* EN: Use Javassist bytecode to enhance serialization of the protocol
* CN: 使用Javassist字节码增强协议的序列化
*/
boolean enhance() default true;

}
Expand Down

0 comments on commit 3ff7740

Please sign in to comment.