aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/org/onap
diff options
context:
space:
mode:
authorSurendra Reddy Katam <SK00524980@techmahindra.com>2019-01-24 11:28:44 +0530
committerSurendra Reddy Katam <SK00524980@techmahindra.com>2019-01-24 11:28:44 +0530
commit64465dad905ee3f636f5b5df8349eec8c263f1f1 (patch)
tree3adc38bdd6524d86fc0f4c55b5e1a60a369f64e1 /src/main/java/org/onap
parent4258ab4a2c2e3b8d90d79ef2d01067f26809241d (diff)
Sonar majior issues
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>
Diffstat (limited to 'src/main/java/org/onap')
-rw-r--r--src/main/java/org/onap/dmaap/mr/client/impl/MRConstants.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/onap/dmaap/mr/client/impl/MRConstants.java b/src/main/java/org/onap/dmaap/mr/client/impl/MRConstants.java
index f6d9578..5ed44c6 100644
--- a/src/main/java/org/onap/dmaap/mr/client/impl/MRConstants.java
+++ b/src/main/java/org/onap/dmaap/mr/client/impl/MRConstants.java
@@ -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;