aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-sdc-versioning-lib
diff options
context:
space:
mode:
authorsheetalm <sheetal.mudholkar@amdocs.com>2018-03-27 17:59:37 +0530
committerVitaly Emporopulo <Vitaliy.Emporopulo@amdocs.com>2018-03-28 10:10:03 +0000
commita40adb9c04fad7da5174b649bff9d1bf6a2d840b (patch)
treed7a7e4adfb767b56389268d4951c88b2fde9aa22 /openecomp-be/lib/openecomp-sdc-versioning-lib
parent8b86ce28ed4ba7adb00cefc0ab5849523657d03f (diff)
Fixing Sonar blocker
1 . Fixing Sonar blocker which already existed in VersionManagerImpl 2 . As part of foundation changes refactoring, the versioning features used by Action Library code was moved to ActionVersioningManagerImpl Change-Id: I7b56d63c1e85e8dda1d4948c590ce577826cfe99 Issue-ID: SDC-1039 Signed-off-by: sheetalm <sheetal.mudholkar@amdocs.com>
Diffstat (limited to 'openecomp-be/lib/openecomp-sdc-versioning-lib')
-rw-r--r--openecomp-be/lib/openecomp-sdc-versioning-lib/openecomp-sdc-versioning-core/src/main/java/org/openecomp/sdc/versioning/impl/ActionVersioningManagerImpl.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/openecomp-be/lib/openecomp-sdc-versioning-lib/openecomp-sdc-versioning-core/src/main/java/org/openecomp/sdc/versioning/impl/ActionVersioningManagerImpl.java b/openecomp-be/lib/openecomp-sdc-versioning-lib/openecomp-sdc-versioning-core/src/main/java/org/openecomp/sdc/versioning/impl/ActionVersioningManagerImpl.java
index 0763ad970b..11c5226699 100644
--- a/openecomp-be/lib/openecomp-sdc-versioning-lib/openecomp-sdc-versioning-core/src/main/java/org/openecomp/sdc/versioning/impl/ActionVersioningManagerImpl.java
+++ b/openecomp-be/lib/openecomp-sdc-versioning-lib/openecomp-sdc-versioning-core/src/main/java/org/openecomp/sdc/versioning/impl/ActionVersioningManagerImpl.java
@@ -146,11 +146,11 @@ public class ActionVersioningManagerImpl implements ActionVersioningManager {
}
if (viewableVersions != null) {
viewableVersions.forEach(version -> version.setStatus(status));
+ versionInfo.setViewableVersions(toSortedList(viewableVersions));
+ versionInfo.setFinalVersions(getFinalVersions(viewableVersions));
}
versionInfo.setActiveVersion(activeVersion);
versionInfo.setLatestFinalVersion(latestFinalVersion);
- versionInfo.setViewableVersions(toSortedList(viewableVersions));
- versionInfo.setFinalVersions(getFinalVersions(viewableVersions));
if (candidate != null) {
candidate.getVersion().setStatus(status);
versionInfo.setLockingUser(candidate.getUser());