Fix sonar issues in dcaegen2/services/mapper
[dcaegen2/services/mapper.git] / snmpmapper / src / main / java / org / onap / dcaegen2 / services / mapper / snmpmapper / service / MappingFileServiceImpl.java
index e5ca3a8..b0e8821 100644 (file)
@@ -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";
                                                }