mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-03 09:14:01 +00:00
feat[lpmap]: 增加long pack map的实现
This commit is contained in:
1 parent
ec1e10ec5b
commit
14a7e69c7c
8 files changed
+426
-2
No files matched your search
@@ -63,7 +63,7 @@ public class ProtocolManager {
|
||||
|
||||
public static IProtocolRegistration getProtocol(short protocolId) {
|
||||
var protocol = protocols[protocolId];
|
||||
AssertionUtils.notNull(protocol, "[protocolId:{}]协议不存在", protocolId);
|
||||
AssertionUtils.notNull(protocol, "[protocolId:{}]协议不存在,可能没有注册该协议或者协议号错误", protocolId);
|
||||
return protocol;
|
||||
}
|
||||
|
||||
|
||||
@@ -494,7 +494,7 @@ public class ProtocolAnalysis {
|
||||
throw new RunException("[type:{}]类型不正确", type);
|
||||
}
|
||||
|
||||
private static short getProtocolIdByClass(Class<?> clazz) {
|
||||
public static short getProtocolIdByClass(Class<?> clazz) {
|
||||
var protocolIdField = ReflectionUtils.getFieldByNameInPOJOClass(clazz, PROTOCOL_ID);
|
||||
ReflectionUtils.makeAccessible(protocolIdField);
|
||||
return (short) ReflectionUtils.getField(protocolIdField, null);
|
||||
|
||||
Reference in new issue
Block a user