diff options
author | Surendra Reddy Katam <SK00524980@techmahindra.com> | 2019-01-23 10:40:07 +0530 |
---|---|---|
committer | Surendra Reddy Katam <SK00524980@techmahindra.com> | 2019-01-23 10:40:07 +0530 |
commit | 502c58dadb0943d4727b474bbdcce0024a15f83d (patch) | |
tree | d4ce5a4d7dd756dc2f59485910f6e4c69c0b4d09 /src/main/java | |
parent | 10fa44b0dc843ed19fb78d393a0c373ebfd388ec (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-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>
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/onap/dmaap/mr/client/MRClientBuilders.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/onap/dmaap/mr/client/MRClientBuilders.java b/src/main/java/org/onap/dmaap/mr/client/MRClientBuilders.java index 2c3101b..abf3736 100644 --- a/src/main/java/org/onap/dmaap/mr/client/MRClientBuilders.java +++ b/src/main/java/org/onap/dmaap/mr/client/MRClientBuilders.java @@ -208,7 +208,7 @@ public class MRClientBuilders */ 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 ); |