优化日志以及属性设置代码

This commit is contained in:
648540858
2024-07-03 16:14:18 +08:00
parent 10c852c00d
commit 799932f614
95 changed files with 881 additions and 2385 deletions

View File

@@ -23,7 +23,7 @@ import java.util.List;
* @email qingtaij@163.com
*/
public class Jt808Decoder extends ByteToMessageDecoder {
private final static Logger log = LoggerFactory.getLogger(Jt808Decoder.class);
private final static Logger logger = LoggerFactory.getLogger(Jt808Decoder.class);
@Override
protected void decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) throws Exception {

View File

@@ -16,7 +16,7 @@ import org.slf4j.LoggerFactory;
* @email qingtaij@163.com
*/
public class Jt808Encoder extends MessageToByteEncoder<Rs> {
private final static Logger log = LoggerFactory.getLogger(Jt808Encoder.class);
private final static Logger logger = LoggerFactory.getLogger(Jt808Encoder.class);
@Override
protected void encode(ChannelHandlerContext ctx, Rs msg, ByteBuf out) throws Exception {

View File

@@ -25,7 +25,7 @@ import java.util.LinkedList;
* @email qingtaij@163.com
*/
public class Jt808EncoderCmd extends MessageToByteEncoder<Cmd> {
private final static Logger log = LoggerFactory.getLogger(Jt808EncoderCmd.class);
private final static Logger logger = LoggerFactory.getLogger(Jt808EncoderCmd.class);
@Override
protected void encode(ChannelHandlerContext ctx, Cmd cmd, ByteBuf out) throws Exception {

View File

@@ -18,7 +18,7 @@ import org.slf4j.LoggerFactory;
*/
public class Jt808Handler extends ChannelInboundHandlerAdapter {
private final static Logger log = LoggerFactory.getLogger(Jt808Handler.class);
private final static Logger logger = LoggerFactory.getLogger(Jt808Handler.class);
@Override
public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {

View File

@@ -29,7 +29,7 @@ import java.util.concurrent.TimeUnit;
*/
public class TcpServer {
private final static Logger log = LoggerFactory.getLogger(TcpServer.class);
private final static Logger logger = LoggerFactory.getLogger(TcpServer.class);
private final Integer port;
private boolean isRunning = false;