From c13634360d705cbd37b9d8cd73c3ee813f820470 Mon Sep 17 00:00:00 2001 From: Munir Ahmad Date: Wed, 21 Feb 2018 16:25:03 -0500 Subject: Replace Collection.sort with List.sort Change-Id: Ie7f81c79ac334e5783c4b7f6e1f45e454e215cda Issue-ID: SO-437 Signed-off-by: Munir Ahmad --- .../java/org/openecomp/mso/bpmn/common/WorkflowTest.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'bpmn/MSOCommonBPMN/src/test/java') diff --git a/bpmn/MSOCommonBPMN/src/test/java/org/openecomp/mso/bpmn/common/WorkflowTest.java b/bpmn/MSOCommonBPMN/src/test/java/org/openecomp/mso/bpmn/common/WorkflowTest.java index ce8eb7afec..df15a2a9cc 100644 --- a/bpmn/MSOCommonBPMN/src/test/java/org/openecomp/mso/bpmn/common/WorkflowTest.java +++ b/bpmn/MSOCommonBPMN/src/test/java/org/openecomp/mso/bpmn/common/WorkflowTest.java @@ -1634,10 +1634,10 @@ public class WorkflowTest { return null; } - Collections.sort(processInstanceList, new Comparator() { - public int compare(HistoricProcessInstance m1, HistoricProcessInstance m2) { - return m1.getStartTime().compareTo(m2.getStartTime()); - } + processInstanceList.sort(new Comparator() { + public int compare(HistoricProcessInstance m1, HistoricProcessInstance m2) { + return m1.getStartTime().compareTo(m2.getStartTime()); + } }); HistoricProcessInstance processInstance = processInstanceList.get(0); @@ -1672,10 +1672,10 @@ public class WorkflowTest { return null; } - Collections.sort(processInstanceList, new Comparator() { - public int compare(HistoricProcessInstance m1, HistoricProcessInstance m2) { - return m1.getStartTime().compareTo(m2.getStartTime()); - } + processInstanceList.sort(new Comparator() { + public int compare(HistoricProcessInstance m1, HistoricProcessInstance m2) { + return m1.getStartTime().compareTo(m2.getStartTime()); + } }); HistoricProcessInstance processInstance = processInstanceList.get(subflowInstanceIndex); -- cgit 1.2.3-korg