mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-08-24 02:26:23 +00:00
feat[lpmap]: 增加long pack map的实现
This commit is contained in:
@@ -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