Sonar major issues 11/68611/1
authorSumapriya Sarvepalli <ss00493505@techmahindra.com>
Mon, 24 Sep 2018 06:49:20 +0000 (12:19 +0530)
committerSumapriya Sarvepalli <ss00493505@techmahindra.com>
Mon, 24 Sep 2018 06:49:20 +0000 (12:19 +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-VaiY32hFUzlqc5u3&resolved=false&severities=MAJOR
Location:
src/main/java/com/att/dmf/mr/security/DMaaPAuthenticatorImpl.java
Line No:L74

Change-Id: I13ef44f52feaf81c89137935d2abd04d213026cd
Issue-ID: DMAAP-817
Signed-off-by: Sumapriya Sarvepalli <ss00493505@techmahindra.com>
src/main/java/com/att/dmf/mr/security/DMaaPAuthenticatorImpl.java

index 4a83a1c..0ae0839 100644 (file)
@@ -71,7 +71,7 @@ public class DMaaPAuthenticatorImpl<K extends NsaApiKey> implements DMaaPAuthent
         *            the size of the time window for request authentication
         */
        public DMaaPAuthenticatorImpl(NsaApiDb<K> db, long authTimeWindowMs) {
-               fAuthenticators = new LinkedList<DMaaPAuthenticator<K>>();
+               fAuthenticators = new LinkedList<>();
 
                fAuthenticators.add(new DMaaPOriginalUebAuthenticator<K>(db, authTimeWindowMs));
        }