优化日志以及属性设置代码
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user