aboutsummaryrefslogtreecommitdiffstats
path: root/snmpmapper
diff options
context:
space:
mode:
authorParshad Patel <pars.patel@samsung.com>2018-11-15 15:17:21 +0900
committerParshad Patel <pars.patel@samsung.com>2018-11-15 15:23:49 +0900
commitaeda9528a7dbfed6c7a06b85bd39ff71006d1549 (patch)
tree20f13067e679d12fecaaa3e4958d901021817a04 /snmpmapper
parentcf300b2c58fecf89840547f8ef1b20c6caf935b9 (diff)
Fix sonar issues in dcaegen2/services/mapper
Fix blocker and critical sonar issues Issue-ID: DCAEGEN2-938 Change-Id: I0e8220100c67abeed9fe8db1d220cc06081c60f5 Signed-off-by: Parshad Patel <pars.patel@samsung.com>
Diffstat (limited to 'snmpmapper')
-rw-r--r--snmpmapper/src/main/java/org/onap/dcaegen2/services/mapper/snmpmapper/service/MappingFileServiceImpl.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/snmpmapper/src/main/java/org/onap/dcaegen2/services/mapper/snmpmapper/service/MappingFileServiceImpl.java b/snmpmapper/src/main/java/org/onap/dcaegen2/services/mapper/snmpmapper/service/MappingFileServiceImpl.java
index e5ca3a8..b0e8821 100644
--- a/snmpmapper/src/main/java/org/onap/dcaegen2/services/mapper/snmpmapper/service/MappingFileServiceImpl.java
+++ b/snmpmapper/src/main/java/org/onap/dcaegen2/services/mapper/snmpmapper/service/MappingFileServiceImpl.java
@@ -52,7 +52,7 @@ public class MappingFileServiceImpl implements MappingFileService {
LOGGER.debug("EnterPrise ID recieved:{}",enterpriseid);
- if ((mappingfile != null) && (mappingfile.length > 0) && (!mappingfile.equals(""))) {
+ if ((mappingfile != null) && (mappingfile.length > 0)) {
for (MultipartFile aFile : mappingfile) {
if(aFile.isEmpty()) {
continue;
@@ -77,7 +77,6 @@ public class MappingFileServiceImpl implements MappingFileService {
LOGGER.error("IOException occured:{}",e.getCause());
return "failed";
} catch (SQLException e) {
- // TODO Auto-generated catch block
LOGGER.error("SQLException occured:{}",e.getCause());
return "failed";
}