Code Optimization. 91/37691/2
authorYuanHu <yuan.hu1@zte.com.cn>
Thu, 22 Mar 2018 06:41:08 +0000 (14:41 +0800)
committerYuanHu <yuan.hu1@zte.com.cn>
Thu, 22 Mar 2018 08:29:02 +0000 (16:29 +0800)
Code Optimization.

Issue-ID: SDC-1079

Change-Id: I118775236dc981fb0ec5564b92d2ae963bda983e
Signed-off-by: YuanHu <yuan.hu1@zte.com.cn>
sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/WorkflowDesignerApp.java
sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/ExtendActivityResource.java
sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/WorkflowModelerResource.java
sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/CategoryData.java
sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/ExtActivityDisplayInfo.java

index 8e8d9a1..a30a026 100644 (file)
@@ -52,7 +52,7 @@ public class WorkflowDesignerApp extends Application<WorkflowDesignerConfigurati
   @Override
   public void run(WorkflowDesignerConfiguration configuration, Environment environment) {
     LOGGER.info("Start to initialize Workflow Designer.");
-    
+
     AppConfig.setSdcServiceProxy(configuration.getSdcServiceProxy());
 
     environment.jersey().register(new WorkflowModelerResource());
index d5bbdd4..bd8a541 100644 (file)
@@ -47,9 +47,10 @@ import io.swagger.annotations.ApiResponses;
 @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 String EXT_ACTIVITIES_DISPLAY_INFO_FILE_NAME =
+      "ext-activities-display-info.json";
 
   private static final String EXT_ACTIVITIES_FILE_NAME = "ext-activities.json";
 
@@ -62,7 +63,8 @@ public class ExtendActivityResource {
   @GET
   @Consumes(MediaType.APPLICATION_JSON)
   @Produces(MediaType.APPLICATION_JSON)
-  @ApiOperation(value = "Get Extend Activities.", response = ExtendActivity.class, responseContainer = "List")
+  @ApiOperation(value = "Get Extend Activities.", response = ExtendActivity.class,
+      responseContainer = "List")
   @ApiResponses(value = {
       @ApiResponse(code = HttpStatus.NOT_FOUND_404, message = "microservice not found",
           response = String.class),
@@ -84,7 +86,7 @@ public class ExtendActivityResource {
   }
 
   /**
-   * @param sence 
+   * @param sence
    * @return
    * @throws IOException
    */
@@ -92,13 +94,14 @@ public class ExtendActivityResource {
     String json = FileCommonUtils.readString(EXT_ACTIVITIES_FILE_NAME);
     return JsonUtils.fromJson(json, ExtendActivity[].class);
   }
-  
+
 
   @Path("/displayInfo")
   @GET
   @Consumes(MediaType.APPLICATION_JSON)
   @Produces(MediaType.APPLICATION_JSON)
-  @ApiOperation(value = "Get Extend Activities DisplayInfo", response = ExtActivityDisplayInfo.class)
+  @ApiOperation(value = "Get Extend Activities DisplayInfo",
+      response = ExtActivityDisplayInfo.class)
   @ApiResponses(value = {
       @ApiResponse(code = HttpStatus.NOT_FOUND_404, message = "microservice not found",
           response = String.class),
@@ -118,7 +121,7 @@ public class ExtendActivityResource {
   }
 
   /**
-   * @param sence 
+   * @param sence
    * @return
    * @throws IOException
    */
index 4899f7c..59a6677 100644 (file)
@@ -130,7 +130,7 @@ public class WorkflowModelerResource {
       throw RestUtils.newInternalServerErrorException(e);
     }
   }
-  
+
   /**
    * @param json
    * @param bpmn
@@ -142,11 +142,11 @@ public class WorkflowModelerResource {
 
     return sb.toString();
   }
-  
+
   /**
    * 
    * @return
-   * @throws DocumentException 
+   * @throws DocumentException
    */
   protected String readJsonfromBPMNFile(String bpmn) throws DocumentException {
     Document doc = DocumentHelper.parseText(bpmn);
@@ -157,7 +157,7 @@ public class WorkflowModelerResource {
         return comment.getText().trim();
       }
     }
-    
+
     return null;
   }
 
index 1c92120..bd99ca4 100644 (file)
@@ -16,7 +16,7 @@ package org.onap.sdc.workflowdesigner.resources.entity;
  */\r
 public class CategoryData {\r
   private I18nString displayName;\r
-  \r
+\r
   private boolean collapse;\r
 \r
   /**\r
@@ -46,5 +46,5 @@ public class CategoryData {
   public void setCollapse(boolean collapse) {\r
     this.collapse = collapse;\r
   }\r
-  \r
+\r
 }\r