From e8a47a52397a79573b3fb2dce95dbc9ce8fe0db8 Mon Sep 17 00:00:00 2001 From: hasuniea Date: Mon, 15 Feb 2016 10:46:29 +0530 Subject: [PATCH] refactored code issues --- .../mgt/mobile/impl/windows/WindowsDeviceManager.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.mobile.impl/src/main/java/org/wso2/carbon/device/mgt/mobile/impl/windows/WindowsDeviceManager.java b/components/device-mgt/org.wso2.carbon.device.mgt.mobile.impl/src/main/java/org/wso2/carbon/device/mgt/mobile/impl/windows/WindowsDeviceManager.java index 192bfbc3c1..7e75cb63bf 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.mobile.impl/src/main/java/org/wso2/carbon/device/mgt/mobile/impl/windows/WindowsDeviceManager.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.mobile.impl/src/main/java/org/wso2/carbon/device/mgt/mobile/impl/windows/WindowsDeviceManager.java @@ -121,8 +121,8 @@ public class WindowsDeviceManager implements DeviceManager { if (resource != null) { JAXBContext context = JAXBContext.newInstance(TenantConfiguration.class); Unmarshaller unmarshaller = context.createUnmarshaller(); - return (TenantConfiguration) unmarshaller.unmarshal( - new StringReader(new String((byte[]) resource.getContent(), Charset. + return (TenantConfiguration) unmarshaller.unmarshal(new StringReader( + new String((byte[]) resource.getContent(), Charset. forName(MobilePluginConstants.CHARSET_UTF8)))); } return null; @@ -134,7 +134,8 @@ public class WindowsDeviceManager implements DeviceManager { "Error occurred while parsing the Windows configuration : " + e.getMessage(), e); } catch (RegistryException e) { throw new DeviceManagementException( - "Error occurred while retrieving the Registry resource of Windows configuration : " + e.getMessage(), e); + "Error occurred while retrieving the Registry resource of Windows configuration : " + + e.getMessage(), e); } }