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-MbO532hFUzlqc5Vm&resolved=false&rules=squid%3AS2293&severities=MAJOR
Location:
src/main/java/org/onap/dmaap/mr/client/MRClientBuilders.java
Line No-211
Change-Id: I18ce520c4f3291d1376117268f119fbfa46c1a45
Issue-ID: DMAAP-990
Signed-off-by: Surendra Reddy Katam <SK00524980@techmahindra.com>
*/
public PublisherBuilder usingHosts ( String[] hostSet )
{
- final TreeSet<String> hosts = new TreeSet<String> ();
+ final TreeSet<String> hosts = new TreeSet<> ();
for ( String hp : hostSet )
{
hosts.add ( hp );