Sonar majior issues 48/76248/1
authorSurendra Reddy Katam <SK00524980@techmahindra.com>
Thu, 24 Jan 2019 05:58:44 +0000 (11:28 +0530)
committerSurendra Reddy Katam <SK00524980@techmahindra.com>
Thu, 24 Jan 2019 05:58:44 +0000 (11:28 +0530)
 Replace the type specification in this constructor call with the diamond operator
Sonar Link:
https://sonar.onap.org/project/issues?assignees=surendraReddy&id=org.onap.dmaap.messagerouter.dmaapclient%3AdmaapClient&open=AV4-MbQo32hFUzlqc5Zw&resolved=false&rules=squid%3AS2293&severities=MAJOR
Location:
src/main/java/org/onap/dmaap/mr/client/impl/MRConstants.java
Line No-113

Change-Id: I2b9c7963a4518c99488c0c9ec5e33b1f280d446a
Issue-ID: DMAAP-1002
Signed-off-by: Surendra Reddy Katam <SK00524980@techmahindra.com>
src/main/java/org/onap/dmaap/mr/client/impl/MRConstants.java

index f6d9578..5ed44c6 100644 (file)
@@ -110,7 +110,7 @@ class MRConstants
         */
        public static List<HttpHost> createHostsList(Collection<String> hosts)
        {
-               final ArrayList<HttpHost> convertedHosts = new ArrayList<HttpHost> ();
+               final ArrayList<HttpHost> convertedHosts = new ArrayList<> ();
                for ( String host : hosts )
                {
                        if ( host.length () == 0 ) continue;