From 92bf6f4140a3af89098b77b02813787615c71175 Mon Sep 17 00:00:00 2001 From: Ace Date: Thu, 18 Oct 2018 11:36:12 +0530 Subject: [PATCH] Fixing formatting issues --- .../service/impl/GeoLocationBasedServiceImpl.java | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/GeoLocationBasedServiceImpl.java b/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/GeoLocationBasedServiceImpl.java index 955b338680..2b93290777 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/GeoLocationBasedServiceImpl.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/GeoLocationBasedServiceImpl.java @@ -585,13 +585,11 @@ public class GeoLocationBasedServiceImpl implements GeoLocationBasedService { } - /** * When an input is having '@',replace it with '-AT-' [This is required to * persist WebApp data in registry,as registry paths don't allow '@' sign.] * - * @param input - * inputString + * @param input inputString * @return String modifiedString */ public static String replaceEmailDomain(String input) { @@ -607,17 +605,16 @@ public class GeoLocationBasedServiceImpl implements GeoLocationBasedService { * When an input is having '-AT-',replace it with @ [This is required to * persist WebApp data between registry and database] * - * @param input - * inputString + * @param input inputString * @return String modifiedString */ public static String replaceEmailDomainBack(String input) { - if (input != null){ + if (input != null) { if (input.contains(EMAIL_DOMAIN_SEPARATOR_REPLACEMENT)) { input = input.replace(EMAIL_DOMAIN_SEPARATOR_REPLACEMENT, EMAIL_DOMAIN_SEPARATOR); - }else if (input.contains(SECONDERY_USER_STORE_SEPERATOR)){ + } else if (input.contains(SECONDERY_USER_STORE_SEPERATOR)) { input = input.replace(SECONDERY_USER_STORE_SEPERATOR, SECONDERY_USER_STORE_DEFAULT_SEPERATOR);