From 087d989fccccd0c5e6f1d8c89741171592e62c47 Mon Sep 17 00:00:00 2001 From: shtykh_roman Date: Thu, 16 Mar 2017 23:09:13 -0700 Subject: [PATCH] Corrected string check for emptiness. --- .../apache/rocketmq/tools/command/stats/StatsAllSubCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/src/main/java/org/apache/rocketmq/tools/command/stats/StatsAllSubCommand.java b/tools/src/main/java/org/apache/rocketmq/tools/command/stats/StatsAllSubCommand.java index 802d9c7c..47070882 100644 --- a/tools/src/main/java/org/apache/rocketmq/tools/command/stats/StatsAllSubCommand.java +++ b/tools/src/main/java/org/apache/rocketmq/tools/command/stats/StatsAllSubCommand.java @@ -189,7 +189,7 @@ public class StatsAllSubCommand implements SubCommand { continue; } - if (selectTopic != null && selectTopic != "" && !topic.equals(selectTopic)) { + if (selectTopic != null && !selectTopic.isEmpty() && !topic.equals(selectTopic)) { continue; } -- GitLab