mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-05-17 05:02:32 +08:00
refactor: replace size() == 0 with isEmpty()
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user