summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/att/dmf
diff options
context:
space:
mode:
authorSumapriya Sarvepalli <ss00493505@techmahindra.com>2018-08-27 15:28:13 +0530
committerSumapriya Sarvepalli <ss00493505@techmahindra.com>2018-08-27 15:28:13 +0530
commitb7cd3f4efae963ad5daa34d95911c5acb86e066f (patch)
tree8b807b78a8112b60b73dfed509324027315f6eb6 /src/main/java/com/att/dmf
parent4ef34e65089fa86822f9e4c0efacd1c4da98673f (diff)
Sonar major issues
Replace with the diamond operator Sonar Link: https://sonar.onap.org/project/issues?assignees=sumapriya&id=org.onap.dmaap.messagerouter.msgrtr%3Amsgrtr&open=AV4-Vaf-32hFUzlqc5rw&resolved=false&severities=MAJOR Location: src/main/java/com/att/dmf/mr/metrics/publisher/CambriaPublisherUtility.java Line No:L98 Change-Id: I027c9225d436fdd99375eb22b4c55468eaa5e705 Issue-ID: DMAAP-653 Signed-off-by: Sumapriya Sarvepalli <ss00493505@techmahindra.com>
Diffstat (limited to 'src/main/java/com/att/dmf')
-rw-r--r--src/main/java/com/att/dmf/mr/metrics/publisher/CambriaPublisherUtility.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/att/dmf/mr/metrics/publisher/CambriaPublisherUtility.java b/src/main/java/com/att/dmf/mr/metrics/publisher/CambriaPublisherUtility.java
index 1510c32..46dfa99 100644
--- a/src/main/java/com/att/dmf/mr/metrics/publisher/CambriaPublisherUtility.java
+++ b/src/main/java/com/att/dmf/mr/metrics/publisher/CambriaPublisherUtility.java
@@ -95,7 +95,7 @@ public class CambriaPublisherUtility
*/
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;