diff options
author | Oleksandr Moliavko <o.moliavko@samsung.com> | 2019-07-30 16:18:31 +0300 |
---|---|---|
committer | Oleksandr Moliavko <o.moliavko@samsung.com> | 2019-07-30 16:18:31 +0300 |
commit | 8e45144b00c3b77a103a38dd5759c68c12a0ad0f (patch) | |
tree | 22a4108019e2ee25b9e06f76bd253b6513881911 /adapters | |
parent | 5bc663e5831a87b897d43f0f7fb7ec8bce88e633 (diff) |
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 <o.moliavko@samsung.com>
Change-Id: Id5a883628726bdd0313a46ea4808a36eccf03c9a
Diffstat (limited to 'adapters')
-rw-r--r-- | adapters/mso-adapter-utils/src/main/java/org/onap/so/cloudify/utils/MsoCloudifyUtils.java | 2 |
1 files changed, 1 insertions, 1 deletions
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 |