mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-24 04:54:21 +08:00
style: include SPP_USE_ISEMPTY
(#5238)
This commit is contained in:
@ -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() {
|
||||
|
Reference in New Issue
Block a user