fixing major Issue 17/61017/1
authorThamlurRaju <thamlurraju468@gmail.com>
Fri, 17 Aug 2018 04:58:37 +0000 (10:28 +0530)
committerThamlurRaju <thamlurraju468@gmail.com>
Fri, 17 Aug 2018 04:58:37 +0000 (10:28 +0530)
Remove this unused This block of commented-out lines of code should be removed
Sonar Link:
https://sonar.onap.org/project/issues?assignees=ThamlurRaju&id=org.onap.vfc.nfvo.resmanagement%3Avfc-nfvo-resmanagement&resolved=false&severities=MAJOR
Location:
src/main/java/org/onap/vfc/nfvo/resmanagement/service/business/impl/SitesBusinessImpl.java
Line No- 88 90 93

Change-Id: Ifebd451288143d067fe35dbdce467f5323f01e35
Issue-ID: VFC-1029
Signed-off-by: ThamlurRaju <thamlurraju468@gmail.com>
ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/service/business/impl/SitesBusinessImpl.java

index 4fe206e..e5fa7e7 100644 (file)
@@ -83,13 +83,6 @@ public class SitesBusinessImpl implements SitesBusiness {
             throw new ServiceException(
                     ResourceUtil.getMessage("org.openo.nfvo.resmanage.service.base.site.add.entity.null"));
         }
-        // if(!StringUtil.checkXss(sitesEntity.getName()) ||
-        // !StringUtil.checkXss(sitesEntity.getCountry())
-        // || !StringUtil.checkXss(sitesEntity.getLocation())) {
-        // LOGGER.error("function=addLocation; msg=add site error, because XSS injection.");
-        // throw new ServiceException(
-        // ResourceUtil.getMessage("org.openo.nfvo.resmanage.service.base.location.add.xss.check"));
-        // }
         LOGGER.info("sitesEntity: " + sitesEntity.toString());
         this.checkSite(sitesEntity, TYPE_ADD);
         SitesEntity.dataFramat(sitesEntity);