diff options
author | Dave Chen <wei.d.chen@intel.com> | 2017-07-18 16:19:42 +0800 |
---|---|---|
committer | Dave Chen <wei.d.chen@intel.com> | 2017-07-24 12:20:57 +0800 |
commit | 56c5f082b7ff6861f53ca974574ee9ddce73a6f4 (patch) | |
tree | 7647660009f2a3d63c59adac17eba3fddb93bbd7 /src/main/java | |
parent | fc5eb8622019f06498a05b8dadef7f0a7bb3ab4b (diff) |
[SDC-139] Prevent annoying warning message from IDE
Change-Id: I549e3c71908d484040ec208d0d3a58a6115dd851
Signed-off-by: Dave Chen <wei.d.chen@intel.com>
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/openecomp/sdc/tosca/parser/impl/SdcCsarHelperImpl.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/org/openecomp/sdc/tosca/parser/impl/SdcCsarHelperImpl.java b/src/main/java/org/openecomp/sdc/tosca/parser/impl/SdcCsarHelperImpl.java index 9b40416..eae0aac 100644 --- a/src/main/java/org/openecomp/sdc/tosca/parser/impl/SdcCsarHelperImpl.java +++ b/src/main/java/org/openecomp/sdc/tosca/parser/impl/SdcCsarHelperImpl.java @@ -26,7 +26,6 @@ import java.util.stream.Collectors; import org.apache.commons.lang3.tuple.ImmutablePair; import org.apache.commons.lang3.tuple.Pair; -//import org.json.JSONObject; import org.openecomp.sdc.tosca.parser.api.ISdcCsarHelper; import org.openecomp.sdc.tosca.parser.utils.GeneralUtility; import org.openecomp.sdc.tosca.parser.utils.SdcToscaUtility; @@ -164,6 +163,7 @@ public class SdcCsarHelperImpl implements ISdcCsarHelper { return cps; } + @SuppressWarnings("unchecked") private void buildPathMappedToValue(String path, Object property, Map<String, Object> pathsMap) { if (property instanceof Map) { for (Map.Entry<String, Object> item : ((Map<String, Object>) property).entrySet()) { @@ -339,6 +339,7 @@ public class SdcCsarHelperImpl implements ISdcCsarHelper { return null; } + @SuppressWarnings({ "unchecked", "rawtypes" }) private Object iterateProcessPath(Integer index, Object current, String[] split) { if (current == null) { log.error("iterateProcessPath - this input has no default"); @@ -505,6 +506,7 @@ public class SdcCsarHelperImpl implements ISdcCsarHelper { @Override //Sunny flow - covered with UT + @SuppressWarnings("unchecked") public List<Pair<NodeTemplate, NodeTemplate>> getNodeTemplatePairsByReqName( List<NodeTemplate> listOfReqNodeTemplates, List<NodeTemplate> listOfCapNodeTemplates, String reqName) { if (listOfReqNodeTemplates == null || listOfCapNodeTemplates == null || reqName == null) { @@ -732,6 +734,7 @@ public class SdcCsarHelperImpl implements ISdcCsarHelper { return nt.getType().endsWith("VnfConfiguration"); } + @SuppressWarnings("unchecked") private Map<String, String> filterProperties(Object property, String path, FilterType filterType, String pattern, Map<String, String> filterMap) { if (property instanceof Map) { |