fixing major Sonar Issue 63/61063/1
authorThamlurRaju <thamlurraju468@gmail.com>
Fri, 17 Aug 2018 09:16:24 +0000 (14:46 +0530)
committerThamlurRaju <thamlurraju468@gmail.com>
Fri, 17 Aug 2018 09:16:24 +0000 (14:46 +0530)
Replace the type specification in this constructor call with the diamond operator
Sonar Link:
https://sonar.onap.org/project/issues?assignees=ThamlurRaju&id=org.onap.vfc.nfvo.resmanagement%3Avfc-nfvo-resmanagement&open=AV8lpfC2-08if2a6pmB4&resolved=false&severities=MAJOR&types=CODE_SMELL
Location:
src/main/java/org/onap/vfc/nfvo/resmanagement/service/rest/LocationRoa.java
Line No- 185

Change-Id: I0eb22107fa281b6117fceeaa87fba12a27091fcb
Issue-ID: VFC-1035
Signed-off-by: ThamlurRaju <thamlurraju468@gmail.com>
ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/service/rest/LocationRoa.java

index f73726f..9dcbd94 100644 (file)
@@ -182,7 +182,7 @@ public class LocationRoa {
             @QueryParam(ParamConstant.PARAM_LOCATION) String locations) throws ServiceException {
         LOGGER.info("LocationRoa::getLocation locations:{}", locations);
         Map<String, Object> condition = new HashMap<>();
-        List<LocationEntity> loca = new ArrayList<LocationEntity>();
+        List<LocationEntity> loca = new ArrayList<>();
         condition.put(ParamConstant.PARAM_LOCATION, locations);
         loca = location.get(condition);
         LOGGER.info("LocationRoa::getLocation loca:{}", loca);