mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-05-23 02:26:15 +00:00
Update PacketBus.java
perf[net]: 删除无用的类型强制转换
This commit is contained in:
@@ -13,7 +13,6 @@
|
||||
|
||||
package com.zfoo.net.router.route;
|
||||
|
||||
import com.zfoo.event.model.event.IEvent;
|
||||
import com.zfoo.net.packet.PacketService;
|
||||
import com.zfoo.net.router.attachment.GatewayAttachment;
|
||||
import com.zfoo.net.router.attachment.HttpAttachment;
|
||||
@@ -83,7 +82,7 @@ public abstract class PacketBus {
|
||||
|
||||
AssertionUtils.isTrue(paramClazzs.length != 3 || IAttachment.class.isAssignableFrom(paramClazzs[2]), "[class:{}] [method:{}],the third parameter must be IAttachment type parameter Exception.", bean.getClass().getName(), method.getName());
|
||||
|
||||
var packetClazz = (Class<? extends IEvent>) paramClazzs[1];
|
||||
var packetClazz = paramClazzs[1];
|
||||
var attachmentClazz = paramClazzs.length == 3 ? paramClazzs[2] : null;
|
||||
var packetName = packetClazz.getCanonicalName();
|
||||
var methodName = method.getName();
|
||||
|
||||
Reference in New Issue
Block a user