aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/com/att/nsa
diff options
context:
space:
mode:
authorSurendra Reddy Katam <SK00524980@techmahindra.com>2018-08-23 11:06:13 +0530
committerSurendra Reddy Katam <SK00524980@techmahindra.com>2018-08-23 11:06:13 +0530
commitb99cdb870a0cbd39d02ec46d43d9dbba288200ce (patch)
tree9ca483d3979d36060560d3588b96ea24e3088cea /src/main/java/com/att/nsa
parentc7d4f81fca7493d5377da10c027b81b447861412 (diff)
Sonar major issues
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>
Diffstat (limited to 'src/main/java/com/att/nsa')
-rw-r--r--src/main/java/com/att/nsa/mr/tools/MRCommandContext.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/att/nsa/mr/tools/MRCommandContext.java b/src/main/java/com/att/nsa/mr/tools/MRCommandContext.java
index 3430d9c..8cc84ef 100644
--- a/src/main/java/com/att/nsa/mr/tools/MRCommandContext.java
+++ b/src/main/java/com/att/nsa/mr/tools/MRCommandContext.java
@@ -57,7 +57,7 @@ public class MRCommandContext implements CommandContext
public boolean checkClusterReady ()
{
- return ( fCluster.size () != 0 );
+ return ( fCluster.isEmpty());
}
public Collection<String> getCluster ()