Sonar major issues 53/68653/1
authorSumapriya Sarvepalli <ss00493505@techmahindra.com>
Mon, 24 Sep 2018 11:43:09 +0000 (17:13 +0530)
committerSumapriya Sarvepalli <ss00493505@techmahindra.com>
Mon, 24 Sep 2018 11:43:09 +0000 (17:13 +0530)
 Replace the type specification in this constructor call with the diamond operator
Sonar Link:
https://sonar.onap.org/project/issues?assignees=sumapriya&id=org.onap.dmaap.messagerouter.msgrtr%3Amsgrtr&open=AV4-ValM32hFUzlqc5zd&resolved=false&severities=MAJOR
Location:
src/main/java/com/att/dmf/mr/service/impl/UIServiceImpl.java
Line No:L79

Change-Id: Ie5ccf2f20a1abe00076afc6c25c08d0ee01c65aa
Issue-ID: DMAAP-822
Signed-off-by: Sumapriya Sarvepalli <ss00493505@techmahindra.com>
src/main/java/com/att/dmf/mr/service/impl/UIServiceImpl.java

index c8bb073..b624a39 100644 (file)
@@ -76,7 +76,7 @@ public class UIServiceImpl implements UIService {
                LOGGER.info("Fetching list of all api keys and returning in a templated form for display.");
                Map<String, NsaSimpleApiKey> keyMap = getApiKeyDb(dmaapContext).loadAllKeyRecords();
 
-               LinkedList<JSONObject> keyList = new LinkedList<JSONObject>();
+               LinkedList<JSONObject> keyList = new LinkedList<>();
 
                JSONObject jsonList = new JSONObject();