Skip to content

Commit

Permalink
[Improve] Modify the empty judgment of the collection (#3338)
Browse files Browse the repository at this point in the history
  • Loading branch information
ai-smalleryu authored Nov 12, 2023
1 parent 4788f1d commit 86b9448
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ private List<TreeNode> getMaybeNodeList(
* @param now current FST node
*/
private void getDFSWord(List<WordWithFrequency> 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()
Expand Down

0 comments on commit 86b9448

Please sign in to comment.