Refactor method 'undoCheckout' to simplify it and remove potential NPE 08/108208/3
authorChris André <chris.andre@yoppworks.com>
Mon, 25 May 2020 16:51:38 +0000 (12:51 -0400)
committerOfir Sonsino <ofir.sonsino@intl.att.com>
Wed, 3 Jun 2020 06:58:23 +0000 (06:58 +0000)
commitf1922cef9735e44b3e5116e86a89c7e2449b1ce1
tree54c13935bcff99166e4b5cdd097fdc74ab90b087
parent8a5f3aebc6b5681c5c44307b7a0cdf868802e790
Refactor method 'undoCheckout' to simplify it and remove potential NPE

- Extracted methods 'retrieveAndUpdatePreviousVersion' and 'updateEdgeToCatalogRootAndReturnPreVersionElement' from 'undoCheckout'

Issue-ID: SDC-2965
Signed-off-by: Chris Andre <chris.andre@yoppworks.com>
Change-Id: I52faffdaf2e99a9de8c2e566da26a5be6e7fd667
catalog-model/src/main/java/org/openecomp/sdc/be/model/jsonjanusgraph/operations/ToscaElementLifecycleOperation.java