From 2bb80a3be65e28cac290aea8e903a4f5c623123c Mon Sep 17 00:00:00 2001 From: Chandan Ghosh Date: Fri, 24 Aug 2018 14:06:40 +0530 Subject: replace getApiRootDomain method with static final replace getApiRootDomain method with static final value sonarqube bug fix Issue-ID: VFC-1073 Change-Id: Id7d4c8b189fcf3dbf235f26e4a6efe2a623aa345 Signed-off-by: Chandan Ghosh --- .../java/org/onap/workflow/activitiext/common/EnumModuleUrl.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'activiti-extension/src/main') diff --git a/activiti-extension/src/main/java/org/onap/workflow/activitiext/common/EnumModuleUrl.java b/activiti-extension/src/main/java/org/onap/workflow/activitiext/common/EnumModuleUrl.java index a380ffd..45f2957 100644 --- a/activiti-extension/src/main/java/org/onap/workflow/activitiext/common/EnumModuleUrl.java +++ b/activiti-extension/src/main/java/org/onap/workflow/activitiext/common/EnumModuleUrl.java @@ -28,9 +28,7 @@ public class EnumModuleUrl { private static final Logger logger = LoggerFactory.getLogger(EnumModuleUrl.class); - public static String getApiRootDomain() { - return "/openoapi/catalog/v1"; - } + private static final String apiRootDomain="/openoapi/catalog/v1"; public static String getBaseUrl(ServiceType type) { String baseUrl = ""; @@ -47,7 +45,7 @@ public class EnumModuleUrl { baseUrl = publishUrl; }else{ - baseUrl = PropertyUtil.getBasePath() + getApiRootDomain(); + baseUrl = PropertyUtil.getBasePath() + apiRootDomain; } logger.info("baseUrl is" + baseUrl); -- cgit 1.2.3-korg