|
|
@@ -31,8 +31,8 @@ public class DefaultDeviceConfigManager implements DeviceConfigManager{
|
|
|
}
|
|
|
public static void register(String bridgeId,String originalIdentity,String productKey,String deviceName,String deviceSecret){
|
|
|
DeviceIdentity deviceIdentity = new DeviceIdentity(productKey, deviceName, deviceSecret);
|
|
|
- configCache.putIfAbsent(getConfigId(bridgeId,originalIdentity),deviceIdentity);
|
|
|
- revertCache.putIfAbsent(getMapKey(deviceIdentity), originalIdentity);
|
|
|
+ configCache.put(getConfigId(bridgeId,originalIdentity),deviceIdentity);
|
|
|
+ revertCache.put(getMapKey(deviceIdentity), originalIdentity);
|
|
|
}
|
|
|
|
|
|
public static String getConfigId(String bridgeId,String originalIdentity){
|