mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-04 23:32:55 +08:00
perf: Call to 'asList()' with only one argument
This commit is contained in:
parent
6e3b3b20a0
commit
4f1ad7b576
@ -27,7 +27,7 @@ public class AbilityMixinData implements Serializable {
|
||||
List<String> list = (new Gson()).fromJson(modifierName, listType);
|
||||
return list;
|
||||
} else {
|
||||
return Arrays.asList(modifierName.getAsString());
|
||||
return Collections.singletonList(modifierName.getAsString());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -392,7 +392,7 @@ public class Scene {
|
||||
}
|
||||
|
||||
public void updateEntity(GameEntity entity, VisionType type) {
|
||||
this.broadcastPacket(new PacketSceneEntityUpdateNotify(Arrays.asList(entity), type));
|
||||
this.broadcastPacket(new PacketSceneEntityUpdateNotify(Collections.singletonList(entity), type));
|
||||
}
|
||||
|
||||
private static <T> List<List<T>> chopped(List<T> list, final int L) {
|
||||
|
Loading…
Reference in New Issue
Block a user