Merge "Sonar majior issues"
authorsunil unnava <su622b@att.com>
Mon, 11 Feb 2019 14:12:16 +0000 (14:12 +0000)
committerGerrit Code Review <gerrit@onap.org>
Mon, 11 Feb 2019 14:12:16 +0000 (14:12 +0000)
src/main/java/org/onap/dmaap/mr/client/MRClientFactory.java

index dc9d555..5c06383 100644 (file)
@@ -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);
         }