diff options
author | Oleksandr Moliavko <o.moliavko@samsung.com> | 2019-07-30 09:04:41 +0300 |
---|---|---|
committer | Oleksandr Moliavko <o.moliavko@samsung.com> | 2019-07-30 09:04:41 +0300 |
commit | 9a53951bc132aad23dee5807b2a1644a66d9ca09 (patch) | |
tree | d595396cd1e69c6fb6e8cc3c854b241ab03a8825 /adapters/mso-openstack-adapters/src/main/java/org | |
parent | 5bc663e5831a87b897d43f0f7fb7ec8bce88e633 (diff) |
Replaced constructor call with valueOf() call to
remove static analyzer warning about inefficient
use of constructor
Issue-ID: SO-1841
Signed-off-by: Oleksandr Moliavko <o.moliavko@samsung.com>
Change-Id: I5b6285aa8708b57bb54a90d38130a21b07c2b2c5
Diffstat (limited to 'adapters/mso-openstack-adapters/src/main/java/org')
-rw-r--r-- | adapters/mso-openstack-adapters/src/main/java/org/onap/so/adapters/vnf/MsoVnfPluginAdapterImpl.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/adapters/mso-openstack-adapters/src/main/java/org/onap/so/adapters/vnf/MsoVnfPluginAdapterImpl.java b/adapters/mso-openstack-adapters/src/main/java/org/onap/so/adapters/vnf/MsoVnfPluginAdapterImpl.java index 2d77bf625a..70fb0b3857 100644 --- a/adapters/mso-openstack-adapters/src/main/java/org/onap/so/adapters/vnf/MsoVnfPluginAdapterImpl.java +++ b/adapters/mso-openstack-adapters/src/main/java/org/onap/so/adapters/vnf/MsoVnfPluginAdapterImpl.java @@ -339,7 +339,7 @@ public class MsoVnfPluginAdapterImpl implements MsoVnfAdapter { return null; } } else if ("boolean".equalsIgnoreCase(type)) { - return new Boolean(inputValue.toString()); + return Boolean.valueOf(inputValue.toString()); } // Nothing else matched. Return the original string |