Skip to content

Commit 087d989

Browse files
committed
Corrected string check for emptiness.
1 parent 6b7d206 commit 087d989

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/src/main/java/org/apache/rocketmq/tools/command/stats/StatsAllSubCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ public void execute(CommandLine commandLine, Options options, RPCHook rpcHook) t
189189
continue;
190190
}
191191

192-
if (selectTopic != null && selectTopic != "" && !topic.equals(selectTopic)) {
192+
if (selectTopic != null && !selectTopic.isEmpty() && !topic.equals(selectTopic)) {
193193
continue;
194194
}
195195

0 commit comments

Comments
 (0)