diff --git a/src/main/java/club/joylink/rtss/simulation/cbtc/device/real/afctransfer/AfcMessageHandler.java b/src/main/java/club/joylink/rtss/simulation/cbtc/device/real/afctransfer/AfcMessageHandler.java index 7c00a1e37..32d94c895 100644 --- a/src/main/java/club/joylink/rtss/simulation/cbtc/device/real/afctransfer/AfcMessageHandler.java +++ b/src/main/java/club/joylink/rtss/simulation/cbtc/device/real/afctransfer/AfcMessageHandler.java @@ -2,20 +2,14 @@ package club.joylink.rtss.simulation.cbtc.device.real.afctransfer; import club.joylink.rtss.simulation.cbtc.device.real.modbustcp.PlcGatewayConnectManager; import club.joylink.rtss.simulation.cbtc.device.real.modbustcp.handler.ModbusMessageHandler2; -import com.digitalpetri.modbus.FunctionCode; -import com.digitalpetri.modbus.codec.ModbusResponseDecoder; import com.digitalpetri.modbus.codec.ModbusTcpPayload; -import com.digitalpetri.modbus.requests.*; -import com.digitalpetri.modbus.responses.*; -import io.netty.buffer.ByteBuf; -import io.netty.buffer.Unpooled; +import com.digitalpetri.modbus.responses.ModbusResponse; import io.netty.channel.Channel; import io.netty.channel.ChannelHandlerContext; import io.netty.channel.SimpleChannelInboundHandler; import io.netty.util.internal.shaded.org.jctools.queues.MpscArrayQueue; import lombok.extern.slf4j.Slf4j; -import java.nio.charset.StandardCharsets; import java.util.concurrent.CompletableFuture; import java.util.concurrent.locks.ReentrantLock; @@ -69,7 +63,8 @@ public class AfcMessageHandler extends SimpleChannelInboundHandler