aboutsummaryrefslogtreecommitdiffstats
path: root/asdc-controller/src
diff options
context:
space:
mode:
authorMunir Ahmad <munir.ahmad@bell.ca>2018-03-07 18:55:19 -0500
committerMunir Ahmad <munir.ahmad@bell.ca>2018-03-07 18:56:00 -0500
commit253187391a2a65cded398272b2f14b86f3ba8c95 (patch)
tree7342bc439b768a8021eb5b55ddc26d787ea303a0 /asdc-controller/src
parentbcfb7e24ab050bd530e9aa2c9557386a4b9f82f5 (diff)
Swap Collection.sort with list.sort
Change-Id: Id56bcc3ad3696b5068b9465e9951f211ac467cb3 Issue-ID: SO-437 Signed-off-by: Munir Ahmad <munir.ahmad@bell.ca>
Diffstat (limited to 'asdc-controller/src')
-rw-r--r--asdc-controller/src/main/java/org/openecomp/mso/asdc/installer/heat/ToscaResourceInstaller.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/asdc-controller/src/main/java/org/openecomp/mso/asdc/installer/heat/ToscaResourceInstaller.java b/asdc-controller/src/main/java/org/openecomp/mso/asdc/installer/heat/ToscaResourceInstaller.java
index e0f338e27c..591db355c5 100644
--- a/asdc-controller/src/main/java/org/openecomp/mso/asdc/installer/heat/ToscaResourceInstaller.java
+++ b/asdc-controller/src/main/java/org/openecomp/mso/asdc/installer/heat/ToscaResourceInstaller.java
@@ -419,30 +419,30 @@ public class ToscaResourceInstaller {// implements IVfResourceInstaller {
toscaResourceStruct.getSdcCsarHelper().getVfModulesByVf(vfCustomizationUUID);
logger.debug("vfGroups:" + vfGroups.toString());
- Collections.sort(vfGroups, new Comparator<org.openecomp.sdc.toscaparser.api.Group>() {
+ vfGroups.sort(new Comparator<Group>() {
@Override
- public int compare(org.openecomp.sdc.toscaparser.api.Group group1,
- org.openecomp.sdc.toscaparser.api.Group group2) {
+ public int compare(Group group1,
+ Group group2) {
// Field name1Field = group1.class.getDeclaredField("name");
// name1Field.setAccessible(true);
String thisName = group1.getName(); // (String)
- // name1Field.get(group1);
+ // name1Field.get(group1);
String thatName = group2.getName(); // (String)
- // name1Field.get(group2);
+ // name1Field.get(group2);
Matcher m = lastDigit.matcher(thisName);
Matcher m2 = lastDigit.matcher(thatName);
String thisDigit = "0";
String thatDigit = "0";
- if(m.find()) {
+ if (m.find()) {
thisDigit = m.group();
} else {
return -1;
}
- if(m2.find()) {
+ if (m2.find()) {
thatDigit = m2.group();
} else {
return 1;