prefer isEmpty over length() == 0
This commit is contained in:
@@ -180,7 +180,7 @@ public class ContainerCraftConfirm extends AEBaseContainer
|
||||
this.sendCPUs();
|
||||
}
|
||||
|
||||
this.noCPU = this.cpus.size() == 0;
|
||||
this.noCPU = this.cpus.isEmpty();
|
||||
|
||||
super.detectAndSendChanges();
|
||||
|
||||
|
||||
@@ -94,7 +94,7 @@ public class ContainerCraftingStatus extends ContainerCraftingCPU
|
||||
this.sendCPUs();
|
||||
}
|
||||
|
||||
this.noCPU = this.cpus.size() == 0;
|
||||
this.noCPU = this.cpus.isEmpty();
|
||||
|
||||
super.detectAndSendChanges();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user