Showing
1 changed file
with
2 additions
and
2 deletions
... | ... | @@ -96,9 +96,9 @@ class ReactState { |
96 | 96 | this.ytDeviceService = SpringBeanUtils.getBean(TkDeviceService.class); |
97 | 97 | this.cache = cacheManager.getCache(FastIotConstants.CacheConfigKey.SCENE_REACT); |
98 | 98 | this.triggerDevices = null == cache.get(triggerDevicesKey)? |
99 | - new ConcurrentHashMap<>():(ConcurrentHashMap<String, TriggerData>) cache.get("triggerDevices"); | |
99 | + new ConcurrentHashMap<>():cache.get("triggerDevices",ConcurrentHashMap.class); | |
100 | 100 | this.currentAlarms = null == cache.get(currentAlarmsKey)? |
101 | - new ConcurrentHashMap<>():(ConcurrentHashMap<String, Alarm>) cache.get("currentAlarms"); | |
101 | + new ConcurrentHashMap<>():cache.get("triggerDevices",ConcurrentHashMap.class); | |
102 | 102 | } |
103 | 103 | |
104 | 104 | /** | ... | ... |