Fix bug in UpdateIsVnfMenu 90/109090/2
authorxuegao <xg353y@intl.att.com>
Fri, 12 Jun 2020 08:39:07 +0000 (10:39 +0200)
committerOfir Sonsino <ofir.sonsino@intl.att.com>
Mon, 15 Jun 2020 07:42:29 +0000 (07:42 +0000)
Fix the unboxing bug reported by Sonar.

Issue-ID: SDC-3112
Signed-off-by: xuegao <xg353y@intl.att.com>
Change-Id: I4ed3f9a48ad21af2f9f67872791df2796c4e4ad1

asdctool/src/main/java/org/openecomp/sdc/asdctool/main/UpdateIsVnfMenu.java

index fc65a2d..6ab9f9c 100644 (file)
@@ -71,8 +71,8 @@ public class UpdateIsVnfMenu {
 
                        if (updatePropertyOnServiceAtLeastCertified == null) {
                                System.exit(2);
-                       } else if (updatePropertyOnServiceAtLeastCertified.intValue() >= 0) {
-                               log.debug("Number of updated services is {}",updatePropertyOnServiceAtLeastCertified.intValue());
+                       } else if (updatePropertyOnServiceAtLeastCertified >= 0) {
+                               log.debug("Number of updated services is {}",updatePropertyOnServiceAtLeastCertified);
                                System.exit(0);
                        }