summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThamlurRaju <thamlurraju468@gmail.com>2018-08-17 14:27:35 +0530
committerThamlurRaju <thamlurraju468@gmail.com>2018-08-17 14:27:35 +0530
commit488a6f7ffcb94c3e9fa578bf59c1623fb304b31a (patch)
treea49c0cce1a657c59c3e0931249d066062edd3d71
parent42d487000331336b075cee955e679fd4b88e81d4 (diff)
fixing major Sonar Issue
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=AV8lpfDZ-08if2a6pmCN&resolved=false&severities=MAJOR&types=CODE_SMELL Location: src/main/java/org/onap/vfc/nfvo/resmanagement/service/rest/SitesRoa.java Line No- 100 Change-Id: I83880e70d7c3dd91b8f344bf01b2184d83b612d0 Issue-ID: VFC-1034 Signed-off-by: ThamlurRaju <thamlurraju468@gmail.com>
-rw-r--r--ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/service/rest/SitesRoa.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/service/rest/SitesRoa.java b/ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/service/rest/SitesRoa.java
index 67fab75..4fbdc79 100644
--- a/ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/service/rest/SitesRoa.java
+++ b/ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/service/rest/SitesRoa.java
@@ -97,7 +97,7 @@ public class SitesRoa {
public JSONObject getSite(@Context HttpServletRequest context, @PathParam("datacenterId") String id)
throws ServiceException {
LOGGER.warn("SitesRoa::getSitesById id:{}", id);
- Map<String, Object> map = new HashMap<String, Object>(10);
+ Map<String, Object> map = new HashMap<>(10);
map.put(ParamConstant.PARAM_ID, id);
List<SitesEntity> datacenters = sites.getList(map);