Commit 21bd03b4cd31241e2a41d68a9cfb055a920a4799
1 parent
a6d9da31
fix:【iot 物联网】增强 jdk8 的兼容性
Showing
1 changed file
with
1 additions
and
1 deletions
yudao-module-iot/yudao-module-iot-gateway/src/main/java/cn/iocoder/yudao/module/iot/gateway/protocol/mqtt/manager/IotMqttConnectionManager.java
| ... | ... | @@ -125,7 +125,7 @@ public class IotMqttConnectionManager { |
| 125 | 125 | */ |
| 126 | 126 | public IotMqttConnectionManager.ConnectionInfo getConnectionInfoByDeviceId(Long deviceId) { |
| 127 | 127 | // 通过设备 ID 获取连接端点 |
| 128 | - var endpoint = getDeviceEndpoint(deviceId); | |
| 128 | + MqttEndpoint endpoint = getDeviceEndpoint(deviceId); | |
| 129 | 129 | if (endpoint == null) { |
| 130 | 130 | return null; |
| 131 | 131 | } | ... | ... |