summaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-api/src/main
diff options
context:
space:
mode:
authoraribeiro <anderson.ribeiro@est.tech>2019-11-08 10:53:56 +0000
committerOren Kleks <oren.kleks@amdocs.com>2019-11-10 06:50:57 +0000
commit57a8c14ed7b5ef6b39b7e63e76d14dfcac32fb69 (patch)
tree6515dbe523e20375fbb4a661c0e4b68624bd8ea5 /openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-api/src/main
parent3042f71ec5761450e46a3f22c3eb46a117771145 (diff)
Fix sonarQube issue.
Issue-ID: SDC-2646 Change-Id: Ic426e1cccf50e3db40381896ee50b74e647129ee Signed-off-by: aribeiro <anderson.ribeiro@est.tech>
Diffstat (limited to 'openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-api/src/main')
-rw-r--r--openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-api/src/main/java/org/openecomp/core/converter/pnfd/model/Transformation.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-api/src/main/java/org/openecomp/core/converter/pnfd/model/Transformation.java b/openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-api/src/main/java/org/openecomp/core/converter/pnfd/model/Transformation.java
index a3f7ca0626..ff3e19bd1b 100644
--- a/openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-api/src/main/java/org/openecomp/core/converter/pnfd/model/Transformation.java
+++ b/openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-api/src/main/java/org/openecomp/core/converter/pnfd/model/Transformation.java
@@ -27,6 +27,8 @@ import lombok.Getter;
import lombok.Setter;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang3.StringUtils;
+import org.openecomp.sdc.logging.api.Logger;
+import org.openecomp.sdc.logging.api.LoggerFactory;
/**
* Represents a transformation from the PNFD transformation descriptor.
@@ -35,6 +37,8 @@ import org.apache.commons.lang3.StringUtils;
@Setter
public class Transformation {
+ private static final Logger LOGGER = LoggerFactory.getLogger(Transformation.class);
+
private String name;
private String description;
private TransformationBlock block;
@@ -90,7 +94,8 @@ public class Transformation {
try {
T value = clazz.cast(transformationProperty.get().getValue());
return Optional.of(value);
- } catch (final ClassCastException ignored) {
+ } catch (final ClassCastException e) {
+ LOGGER.warn("Could not get property value.", e);
return Optional.empty();
}
}