aboutsummaryrefslogtreecommitdiffstats
path: root/adapters/mso-adapter-utils/src/main/java
diff options
context:
space:
mode:
authorOleksandr Moliavko <o.moliavko@samsung.com>2019-07-30 16:18:31 +0300
committerOleksandr Moliavko <o.moliavko@samsung.com>2019-07-30 16:18:31 +0300
commit8e45144b00c3b77a103a38dd5759c68c12a0ad0f (patch)
tree22a4108019e2ee25b9e06f76bd253b6513881911 /adapters/mso-adapter-utils/src/main/java
parent5bc663e5831a87b897d43f0f7fb7ec8bce88e633 (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/mso-adapter-utils/src/main/java')
-rw-r--r--adapters/mso-adapter-utils/src/main/java/org/onap/so/cloudify/utils/MsoCloudifyUtils.java2
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