summaryrefslogtreecommitdiffstats
path: root/activiti-extension/src
diff options
context:
space:
mode:
authorChandan Ghosh <cghosh12@in.ibm.com>2018-08-24 14:06:40 +0530
committerChandan Ghosh <cghosh12@in.ibm.com>2018-08-24 14:10:50 +0530
commit2bb80a3be65e28cac290aea8e903a4f5c623123c (patch)
treef7fd79d994420a0d70d446ca5d062cb33fff5e83 /activiti-extension/src
parent172bfe6c801db619c2db3f50d84c666221d758a6 (diff)
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 <cghosh12@in.ibm.com>
Diffstat (limited to 'activiti-extension/src')
-rw-r--r--activiti-extension/src/main/java/org/onap/workflow/activitiext/common/EnumModuleUrl.java6
1 files changed, 2 insertions, 4 deletions
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);