Use isEmpty() to check whether the collection is empty or not
Sonar Link:
https://sonar.onap.org/project/issues?assignees=surendraReddy&id=org.onap.dmaap.messagerouter.dmaapclient%3AdmaapClient&open=AV4-MbU532hFUzlqc5hw&resolved=false&severities=MAJOR
Location:
src/main/java/com/att/nsa/mr/tools/MRCommandContext.java
Line No-60
Change-Id: I5b579fc3648c422762cae9852a1f65af613d4a7e
Issue-ID: DMAAP-629
Signed-off-by: Surendra Reddy Katam <SK00524980@techmahindra.com>
public boolean checkClusterReady ()
{
- return ( fCluster.size () != 0 );
+ return ( fCluster.isEmpty());
}
public Collection<String> getCluster ()