mirror of
https://github.com/TheAlgorithms/Java.git
synced 2026-03-13 08:40:43 +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