mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-08-20 04:24:13 +00:00
perf[empty]: use isNotEmpty method instead
This commit is contained in:
@@ -44,7 +44,7 @@ public class JsonWebSocketCodecHandler extends MessageToMessageCodec<WebSocketFr
|
||||
var packetStr = jsonMap.get("packet");
|
||||
var attachmentStr = jsonMap.get("attachmentId");
|
||||
IAttachment attachment = null;
|
||||
if (!StringUtils.isEmpty(attachmentStr)) {
|
||||
if (StringUtils.isNotEmpty(attachmentStr)) {
|
||||
var attachmentId = Short.parseShort(attachmentStr);
|
||||
if (attachmentId >= 0) {
|
||||
var attachmentClass = ProtocolManager.getProtocol(attachmentId).protocolConstructor().getDeclaringClass();
|
||||
|
||||
Reference in New Issue
Block a user