Skip to content

Commit

Permalink
Merge pull request #137 from LucaLq/main
Browse files Browse the repository at this point in the history
perf[net]: adjust access modifier
  • Loading branch information
jaysunxiao authored Nov 13, 2024
2 parents d3d2d93 + f9b334b commit 290e8ef
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ public static List<Class<?>> scanPackageList(String location) {
return new ArrayList<>(classes);
}

private static void enhance(GenerateOperation generateOperation, List<IProtocolRegistration> enhanceList) {
public static void enhance(GenerateOperation generateOperation, List<IProtocolRegistration> enhanceList) {
try {
enhanceProtocolBefore(generateOperation);
enhanceProtocolRegistration(enhanceList);
Expand Down Expand Up @@ -421,7 +421,7 @@ private static List<Field> customFieldOrder(Class<?> clazz, List<Field> fields)
return notCompatibleFields;
}

private static ProtocolRegistration parseProtocolRegistration(Class<?> clazz, ProtocolModule module) {
public static ProtocolRegistration parseProtocolRegistration(Class<?> clazz, ProtocolModule module) {
var protocolId = ProtocolManager.protocolId(clazz);
var declaredFields = getFields(clazz);
// 对象需要被序列化的属性
Expand Down Expand Up @@ -637,7 +637,7 @@ public static Set<Short> getAllSubProtocolIds(short protocolId) {

// 协议智能语法分析,错误的协议定义将无法启动程序并给出错误警告
//-----------------------------------------------------------------------
private static void initProtocolClass(short protocolId, Class<?> clazz) {
public static void initProtocolClass(short protocolId, Class<?> clazz) {
// 协议号重复定义
if (protocolIdMap.containsKey(clazz)) {
throw new RunException("duplicate protocol:[{}] protocolId:[{}] and [protocolId:{}]", clazz.getSimpleName(), protocolIdMap.get(clazz), protocolId);
Expand Down

0 comments on commit 290e8ef

Please sign in to comment.