From 86b94482867b002b8daafd5d23413bdcc662306a Mon Sep 17 00:00:00 2001 From: ai-smalleryu <45379070+ai-smalleryu@users.noreply.github.com> Date: Sun, 12 Nov 2023 22:28:14 +0800 Subject: [PATCH] [Improve] Modify the empty judgment of the collection (#3338) --- .../console/core/service/impl/SqlCompleteServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/core/service/impl/SqlCompleteServiceImpl.java b/streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/core/service/impl/SqlCompleteServiceImpl.java index 5ce506db88..d12a2c8565 100644 --- a/streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/core/service/impl/SqlCompleteServiceImpl.java +++ b/streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/core/service/impl/SqlCompleteServiceImpl.java @@ -226,7 +226,7 @@ private List getMaybeNodeList( * @param now current FST node */ private void getDFSWord(List returnSource, String buffer, TreeNode now) { - if (now.getNext().size() == 0 || now.isStop()) { + if (now.getNext().isEmpty() || now.isStop()) { returnSource.add(new WordWithFrequency(buffer + now.getStep(), now.getCount())); } else { now.getNext()