aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorSurendra Reddy Katam <SK00524980@techmahindra.com>2019-01-23 11:03:29 +0530
committerSurendra Reddy Katam <SK00524980@techmahindra.com>2019-01-23 11:03:29 +0530
commitba5e454f36c3f9ca6ddce4999aee3738cb58926b (patch)
treeb3923a686ec9fad8464659db8b67e121b113509f /src/main/java
parent502c58dadb0943d4727b474bbdcce0024a15f83d (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-MbQH32hFUzlqc5YK&resolved=false&rules=squid%3AS2293&severities=MAJOR Location: src/main/java/org/onap/dmaap/mr/client/impl/MRBaseClient.java Line No-78 Change-Id: I3128c514cc10d9430afe06e1ebfe0916a9e1aac6 Issue-ID: DMAAP-991 Signed-off-by: Surendra Reddy Katam <SK00524980@techmahindra.com>
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/onap/dmaap/mr/client/impl/MRBaseClient.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/onap/dmaap/mr/client/impl/MRBaseClient.java b/src/main/java/org/onap/dmaap/mr/client/impl/MRBaseClient.java
index ecea21c..8ed7dd8 100644
--- a/src/main/java/org/onap/dmaap/mr/client/impl/MRBaseClient.java
+++ b/src/main/java/org/onap/dmaap/mr/client/impl/MRBaseClient.java
@@ -75,7 +75,7 @@ public class MRBaseClient extends HttpClient implements MRClient {
if (a == null)
return null;
- final TreeSet<String> set = new TreeSet<String>();
+ final TreeSet<String> set = new TreeSet<>();
for (int i = 0; i < a.length(); i++) {
set.add(a.getString(i));
}