1. 更新代码规范检查

This commit is contained in:
HuangXin 2023-08-13 11:49:52 +08:00
parent c39634aa4a
commit 076bd38932
5 changed files with 4 additions and 11 deletions

View File

@ -17,9 +17,8 @@ public interface ISocketServer {
/** /**
* Send data int. * Send data int.
* *
* @param <T> the type parameter * @param ch the ch
* @param data the data * @param data the data
* @param devId the dev id
*/ */
void sendData(Channel ch, Object data); void sendData(Channel ch, Object data);

View File

@ -3,8 +3,6 @@ package com.zjyr.beidouservice.adapter.impl.netty;
import com.zjyr.beidouservice.adapter.impl.netty.notify.SocketNotifyEvent; import com.zjyr.beidouservice.adapter.impl.netty.notify.SocketNotifyEvent;
import com.zjyr.beidouservice.common.impl.SocketEventName; import com.zjyr.beidouservice.common.impl.SocketEventName;
import com.zjyr.beidouservice.pojo.vo.binary.BaseBinaryProtocol; import com.zjyr.beidouservice.pojo.vo.binary.BaseBinaryProtocol;
import com.zjyr.beidouservice.pojo.vo.binary.HeartProtocol;
import com.zjyr.beidouservice.pojo.vo.binary.MessageContent;
import io.netty.channel.Channel; import io.netty.channel.Channel;
import io.netty.channel.ChannelHandler; import io.netty.channel.ChannelHandler;
import io.netty.channel.ChannelHandlerContext; import io.netty.channel.ChannelHandlerContext;

View File

@ -6,8 +6,6 @@ import lombok.Getter;
import lombok.Setter; import lombok.Setter;
import org.springframework.context.ApplicationEvent; import org.springframework.context.ApplicationEvent;
import java.util.List;
/** /**
* The type Socket notify event. * The type Socket notify event.
*/ */

View File

@ -1,7 +1,5 @@
package com.zjyr.beidouservice.misc; package com.zjyr.beidouservice.misc;
import com.zjyr.beidouservice.pojo.vo.binary.BaseBinaryProtocol;
/** /**
* The type Helper utils. * The type Helper utils.
*/ */

View File

@ -28,13 +28,13 @@ public class BeidouSocketProtocolServiceImpl implements AdapterProtocolService {
public List<SensorControllContent> createSensorCtrlInfo(List<BeidouAdapterControlContent> ctxList) { public List<SensorControllContent> createSensorCtrlInfo(List<BeidouAdapterControlContent> ctxList) {
List<SensorControllContent> list = new ArrayList<>(); List<SensorControllContent> list = new ArrayList<>();
ctxList.forEach(v -> { for (BeidouAdapterControlContent v : ctxList) {
list.add(SensorControllContent.builder() list.add(SensorControllContent.builder()
.districtsCode(v.getDistrictsCode().byteValue()) .districtsCode(v.getDistrictsCode().byteValue())
.controlAction(v.getControlAction()) .controlAction(v.getControlAction())
.sensorId(v.getSensorId().shortValue()) .sensorId(v.getSensorId().shortValue())
.build()); .build());
}); }
return list; return list;
} }