From a40adb9c04fad7da5174b649bff9d1bf6a2d840b Mon Sep 17 00:00:00 2001 From: sheetalm Date: Tue, 27 Mar 2018 17:59:37 +0530 Subject: 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 --- .../openecomp/sdc/versioning/impl/ActionVersioningManagerImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'openecomp-be/lib/openecomp-sdc-versioning-lib') 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()); -- cgit 1.2.3-korg