commit | 9a53951bc132aad23dee5807b2a1644a66d9ca09 | [log] [tgz] |
---|---|---|
author | Oleksandr Moliavko <o.moliavko@samsung.com> | Tue Jul 30 09:04:41 2019 +0300 |
committer | Oleksandr Moliavko <o.moliavko@samsung.com> | Tue Jul 30 09:04:41 2019 +0300 |
tree | d595396cd1e69c6fb6e8cc3c854b241ab03a8825 | |
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
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 2d77bf6..70fb0b3 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 @@ return null; } } else if ("boolean".equalsIgnoreCase(type)) { - return new Boolean(inputValue.toString()); + return Boolean.valueOf(inputValue.toString()); } // Nothing else matched. Return the original string