From 87cae1312d48bd1fde457114e976333ce5fa2bf4 Mon Sep 17 00:00:00 2001 From: walker Date: Tue, 6 Jun 2023 11:18:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9encode=E7=BC=96=E7=A0=81?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../club/joylink/xiannccda/ats/message/MessageData.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/club/joylink/xiannccda/ats/message/MessageData.java b/src/main/java/club/joylink/xiannccda/ats/message/MessageData.java index e3880e7..32a45e0 100644 --- a/src/main/java/club/joylink/xiannccda/ats/message/MessageData.java +++ b/src/main/java/club/joylink/xiannccda/ats/message/MessageData.java @@ -49,7 +49,9 @@ public abstract class MessageData { * * @return */ - public abstract int messageLength(); + public int messageLength() { + return 8; + } public ByteBuf encode() { final int messageLength = this.messageLength(); @@ -67,6 +69,7 @@ public abstract class MessageData { * * @param buf */ - protected abstract void encode2(ByteBuf buf); + protected void encode2(ByteBuf buf) { + } }