diff --git a/src/main/java/club/joylink/xiannccda/ats/message/collect/StatusDataRepository.java b/src/main/java/club/joylink/xiannccda/ats/message/collect/StatusDataRepository.java index c51d79c..a746375 100644 --- a/src/main/java/club/joylink/xiannccda/ats/message/collect/StatusDataRepository.java +++ b/src/main/java/club/joylink/xiannccda/ats/message/collect/StatusDataRepository.java @@ -25,7 +25,7 @@ public class StatusDataRepository { /** * 当前所有设备状态信息 */ - private Map statusDataVOMap = new ConcurrentHashMap<>(); + private final Map statusDataVOMap = new ConcurrentHashMap<>(); /** * 初始化时,放入设备状态 @@ -48,10 +48,9 @@ public class StatusDataRepository { /** * 对比获取设备变化了的状态信息 - * @param deviceStatusList 设备状态列表 * @return 发生变化的状态信息 */ - public List collectAllCompareResult(List deviceStatusList) { + public List collectAllCompare() { List resultMessage = new LinkedList<>(); deviceStatusBuilder.forEach((k,v) -> { Message message = null;