From 8e45144b00c3b77a103a38dd5759c68c12a0ad0f Mon Sep 17 00:00:00 2001 From: Oleksandr Moliavko Date: Tue, 30 Jul 2019 16:18:31 +0300 Subject: Replaced constructor call with Boolean.valueOf() call to prevent static analyzer warning about inefficient use of constructor Issue-ID: SO-1841 Signed-off-by: Oleksandr Moliavko Change-Id: Id5a883628726bdd0313a46ea4808a36eccf03c9a --- .../src/main/java/org/onap/so/cloudify/utils/MsoCloudifyUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'adapters/mso-adapter-utils/src/main/java/org/onap') diff --git a/adapters/mso-adapter-utils/src/main/java/org/onap/so/cloudify/utils/MsoCloudifyUtils.java b/adapters/mso-adapter-utils/src/main/java/org/onap/so/cloudify/utils/MsoCloudifyUtils.java index dd43837c76..e821d806dd 100644 --- a/adapters/mso-adapter-utils/src/main/java/org/onap/so/cloudify/utils/MsoCloudifyUtils.java +++ b/adapters/mso-adapter-utils/src/main/java/org/onap/so/cloudify/utils/MsoCloudifyUtils.java @@ -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 -- cgit 1.2.3-korg