perf: add Serial annotation here

This commit is contained in:
Breno A. 2024-06-09 09:46:29 -03:00
parent aeadf6bba7
commit 7ee644c794
4 changed files with 10 additions and 0 deletions

View File

@ -3,10 +3,13 @@ package emu.grasscutter.data.binout;
import com.google.gson.*;
import com.google.gson.annotations.SerializedName;
import com.google.gson.reflect.TypeToken;
import java.io.Serial;
import java.io.Serializable;
import java.util.*;
public class AbilityMixinData implements Serializable {
@Serial
private static final long serialVersionUID = -2001232313615923575L;
public enum Type {

View File

@ -3,10 +3,13 @@ package emu.grasscutter.data.binout;
import com.google.gson.annotations.SerializedName;
import emu.grasscutter.data.common.DynamicFloat;
import emu.grasscutter.game.props.ElementType;
import java.io.Serial;
import java.io.Serializable;
import lombok.ToString;
public class AbilityModifier implements Serializable {
@Serial
private static final long serialVersionUID = -2001232313615923575L;
public State state;

View File

@ -8,6 +8,7 @@ import lombok.*;
@Entity
public final class GridPosition implements Serializable {
@Serial
private static final long serialVersionUID = -2001232300615923575L;
@Getter @Setter private int x;

View File

@ -5,6 +5,8 @@ import com.google.gson.annotations.SerializedName;
import dev.morphia.annotations.Entity;
import emu.grasscutter.net.proto.VectorOuterClass.Vector;
import emu.grasscutter.utils.Utils;
import java.io.Serial;
import java.io.Serializable;
import java.util.List;
import lombok.*;
@ -13,6 +15,7 @@ import lombok.experimental.Accessors;
@Entity
@Accessors(chain = true)
public class Position implements Serializable {
@Serial
private static final long serialVersionUID = -2001232313615923575L;
public static final Position ZERO = new Position(0, 0, 0);