Use "isEmpty" to check if a collection is empty

Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
This commit is contained in:
Yanming Zhou
2026-09-18 14:14:36 +02:00
committed by Brian Clozel
parent 4cdd314850
commit c1ba31c40f
9 changed files with 10 additions and 10 deletions
@@ -35,7 +35,7 @@ public class ComponentFactoryBean implements FactoryBean<Component> {
@Override
public Component getObject() {
if (this.children != null && this.children.size() > 0) {
if (this.children != null && !this.children.isEmpty()) {
for (Component child : children) {
this.parent.addComponent(child);
}