Replaced constructor call with Boolean.valueOf() call 71/92271/1
authorOleksandr Moliavko <o.moliavko@samsung.com>
Tue, 30 Jul 2019 13:18:31 +0000 (16:18 +0300)
committerOleksandr Moliavko <o.moliavko@samsung.com>
Tue, 30 Jul 2019 13:18:31 +0000 (16:18 +0300)
to prevent static analyzer warning about inefficient
use of constructor

Issue-ID: SO-1841
Signed-off-by: Oleksandr Moliavko <o.moliavko@samsung.com>
Change-Id: Id5a883628726bdd0313a46ea4808a36eccf03c9a

adapters/mso-adapter-utils/src/main/java/org/onap/so/cloudify/utils/MsoCloudifyUtils.java

index dd43837..e821d80 100644 (file)
@@ -981,7 +981,7 @@ public class MsoCloudifyUtils extends MsoCommonUtils implements VduPlugin {
                 return null;
             }
         } else if (("boolean").equalsIgnoreCase(type)) {
-            return new Boolean(inputValue.toString());
+            return Boolean.valueOf(inputValue.toString());
         }
 
         // Nothing else matched. Return the original string