aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/org
diff options
context:
space:
mode:
authorsunil unnava <su622b@att.com>2019-02-11 14:12:16 +0000
committerGerrit Code Review <gerrit@onap.org>2019-02-11 14:12:16 +0000
commitebcde5d635d5ceab258ce3aa2fbabef658a3ad0e (patch)
tree3d82c85aadf66c90eae446ea99221efa0c5e897f /src/main/java/org
parent64986f72ea27cc757612ccba38c628b6089119fa (diff)
parent211967cf8abd6eb0c39c19b52dc334f0a2359558 (diff)
Merge "Sonar majior issues"
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/onap/dmaap/mr/client/MRClientFactory.java2
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);
}