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.
*
* @param <T> the type parameter
* @param data the data
* @param devId the dev id
* @param ch the ch
* @param data the 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.common.impl.SocketEventName;
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.ChannelHandler;
import io.netty.channel.ChannelHandlerContext;

View File

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

View File

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

View File

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