aboutsummaryrefslogtreecommitdiffstats
path: root/sdc-workflow-designer-server/src/main
diff options
context:
space:
mode:
authorYuanHu <yuan.hu1@zte.com.cn>2018-03-21 09:49:49 +0800
committerYuanHu <yuan.hu1@zte.com.cn>2018-03-21 09:49:49 +0800
commit9fa39e6651f1a7b0bea252cab6c72cc81304a132 (patch)
tree8a4ebdf762433e573d5cd9423d0e55491d736a41 /sdc-workflow-designer-server/src/main
parent70410b3ef0fd4c2325431436365be82c2663a5ed (diff)
Refactor.
Code Optimization Issue-ID: SDC-1079 Change-Id: I8e44498a762ab9072861b0258765efe8eb0ad9fe Signed-off-by: YuanHu <yuan.hu1@zte.com.cn>
Diffstat (limited to 'sdc-workflow-designer-server/src/main')
-rw-r--r--sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/ExtendActivityResource.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/ExtendActivityResource.java b/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/ExtendActivityResource.java
index 600ec8ca..d5bbdd4a 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/ExtendActivityResource.java
+++ b/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/ExtendActivityResource.java
@@ -46,12 +46,12 @@ import io.swagger.annotations.ApiResponses;
@Path("/ext-activities")
@Api(tags = {"Workflow Modeler"})
public class ExtendActivityResource {
+ private static final Logger LOGGER = LoggerFactory.getLogger(ExtendActivityResource.class);
+
/** */
private static final String EXT_ACTIVITIES_DISPLAY_INFO_FILE_NAME = "ext-activities-display-info.json";
- private static final Logger LOGGER = LoggerFactory.getLogger(ExtendActivityResource.class);
-
- private static final String EXT_ACTIVITIES_FILE_NAME = "..\\distribution\\src\\main\\assembly\\ext-activities.json";
+ private static final String EXT_ACTIVITIES_FILE_NAME = "ext-activities.json";
/**
* test function.
@@ -88,7 +88,7 @@ public class ExtendActivityResource {
* @return
* @throws IOException
*/
- private ExtendActivity[] retriveExtActivites(String sence) throws IOException {
+ protected ExtendActivity[] retriveExtActivites(String sence) throws IOException {
String json = FileCommonUtils.readString(EXT_ACTIVITIES_FILE_NAME);
return JsonUtils.fromJson(json, ExtendActivity[].class);
}