From 16e306268f9c431c8d7937233419d6ce8496b6e1 Mon Sep 17 00:00:00 2001 From: hasuniea Date: Thu, 4 Aug 2016 16:35:31 +0530 Subject: [PATCH] fixing javax cache issue --- .../mdm/mobileservices/windows/common/util/DeviceUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/mobile-plugins/windows-plugin/org.wso2.carbon.device.mgt.mobile.windows.api/src/main/java/org/wso2/carbon/mdm/mobileservices/windows/common/util/DeviceUtil.java b/components/mobile-plugins/windows-plugin/org.wso2.carbon.device.mgt.mobile.windows.api/src/main/java/org/wso2/carbon/mdm/mobileservices/windows/common/util/DeviceUtil.java index 5f1c90b1b..e014cdcb1 100644 --- a/components/mobile-plugins/windows-plugin/org.wso2.carbon.device.mgt.mobile.windows.api/src/main/java/org/wso2/carbon/mdm/mobileservices/windows/common/util/DeviceUtil.java +++ b/components/mobile-plugins/windows-plugin/org.wso2.carbon.device.mgt.mobile.windows.api/src/main/java/org/wso2/carbon/mdm/mobileservices/windows/common/util/DeviceUtil.java @@ -54,7 +54,7 @@ public class DeviceUtil { if (deviceID != null) { cacheEntry.setDeviceID(deviceID); } - getTokenCache().put(token, cacheEntry); + getTokenCache().put(token.trim(), cacheEntry); } public static void removeToken(String token) {