diff options
author | Surendra Reddy Katam <SK00524980@techmahindra.com> | 2019-01-29 11:37:24 +0530 |
---|---|---|
committer | Surendra Reddy Katam <SK00524980@techmahindra.com> | 2019-01-29 11:37:24 +0530 |
commit | 211967cf8abd6eb0c39c19b52dc334f0a2359558 (patch) | |
tree | a8b3ed370c1ffab38ee50cd42a0955640f490629 /src/main/java | |
parent | 844dfc285307a6ec1772ef3e741c109fd567f2c3 (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-MbPM32hFUzlqc5Wq&resolved=false&rules=squid%3AS2293&severities=MAJOR
Location:
src/main/java/org/onap/dmaap/mr/client/MRClientFactory.java
Line No-351
Change-Id: I729b24bff9c8652d368410e8126bfd8c48711b69
Issue-ID: DMAAP-1011
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/MRClientFactory.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/onap/dmaap/mr/client/MRClientFactory.java b/src/main/java/org/onap/dmaap/mr/client/MRClientFactory.java index dc9d555..5c06383 100644 --- a/src/main/java/org/onap/dmaap/mr/client/MRClientFactory.java +++ b/src/main/java/org/onap/dmaap/mr/client/MRClientFactory.java @@ -348,7 +348,7 @@ public class MRClientFactory { */ public static MRBatchingPublisher createBatchingPublisher(String[] hostSet, String topic, int maxBatchSize, long maxAgeMs, boolean compress) { - final TreeSet<String> hosts = new TreeSet<String>(); + final TreeSet<String> hosts = new TreeSet<>(); for (String hp : hostSet) { hosts.add(hp); } |