fix major sonar bug 25/78225/3
authork.kazak <k.kazak@samsung.com>
Tue, 12 Feb 2019 14:22:29 +0000 (15:22 +0100)
committerk.kazak <k.kazak@samsung.com>
Tue, 12 Feb 2019 14:22:29 +0000 (15:22 +0100)
commit172be7073ec345f65e7a40cd95da3a97bdbc0f57
tree2baada6c6b0016921cb33066c54698be42161d23
parentb80f29cbbeb5ec218b0278deef872f7b5350e292
fix major sonar bug

Removed useless 'instanceof' operator as it always resolves as true
Replaced it with checking for null
Removed unused imports
Added information about modifications on the top
Added junit tests for the method

Change-Id: I7a902ad2852e0ed0d507a6309857a1bab74921de
Issue-ID: SO-1491
Signed-off-by: k.kazak <k.kazak@samsung.com>
bpmn/so-bpmn-tasks/src/main/java/org/onap/so/bpmn/infrastructure/workflow/tasks/WorkflowAction.java
bpmn/so-bpmn-tasks/src/test/java/org/onap/so/bpmn/infrastructure/workflow/tasks/WorkflowActionTest.java