diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/DeviceManagementServiceProviderImpl.java b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/DeviceManagementServiceProviderImpl.java index a63770e7382..4618a1703ca 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/DeviceManagementServiceProviderImpl.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/DeviceManagementServiceProviderImpl.java @@ -243,8 +243,8 @@ public class DeviceManagementServiceProviderImpl implements DeviceManagementServ String subject = ""; for(NotificationMessages notificationMessage : notificationMessages){ - if (notificationMessage.getType().equals(DeviceManagementConstants.EmailNotifications - .ENROL_NOTIFICATION_TYPE)){ + if (DeviceManagementConstants.EmailNotifications.ENROL_NOTIFICATION_TYPE. + equals(notificationMessage.getType())) { messageHeader = notificationMessage.getHeader(); messageBody = notificationMessage.getBody(); messageFooter = notificationMessage.getFooter(); @@ -298,8 +298,8 @@ public class DeviceManagementServiceProviderImpl implements DeviceManagementServ String subject = ""; for(NotificationMessages notificationMessage : notificationMessages){ - if (notificationMessage.getType().equals(DeviceManagementConstants.EmailNotifications - .USER_REGISTRATION_NOTIFICATION_TYPE)){ + if (DeviceManagementConstants.EmailNotifications.USER_REGISTRATION_NOTIFICATION_TYPE. + equals(notificationMessage.getType())) { messageHeader = notificationMessage.getHeader(); messageBody = notificationMessage.getBody(); messageFooter = notificationMessage.getFooter();