refactor: replace size() == 0 with isEmpty()

This commit is contained in:
Breno A.
2024-06-09 08:54:37 -03:00
Unverified
parent da61d30f44
commit ef58ab3e5a
54 changed files with 89 additions and 91 deletions
@@ -25,11 +25,11 @@ public class OpenConfigEntry {
}
}
if (abilityList.size() > 0) {
if (!abilityList.isEmpty()) {
this.addAbilities = abilityList.toArray(new String[0]);
}
if (modList.size() > 0) {
if (!modList.isEmpty()) {
this.skillPointModifiers = modList.toArray(new SkillPointModifier[0]);
}
}