style: include SPP_USE_ISEMPTY (#5238)

This commit is contained in:
Piotr Idzik
2024-06-24 10:49:50 +02:00
committed by GitHub
parent 22f2abd94f
commit a710fe11c4
4 changed files with 5 additions and 8 deletions

View File

@ -64,7 +64,7 @@ public class LargeTreeNode<E> extends TreeNode<E> {
*/
@Override
public boolean isLeafNode() {
return (childNodes == null || childNodes.size() == 0);
return (childNodes == null || childNodes.isEmpty());
}
public Collection<LargeTreeNode<E>> getChildNodes() {