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>
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);