public class RegisterRequest implements Serializable {
    @NotNull(message = "Register may not be null")
    private Object register;
}
I got codeSmell from sonarLing SonarLint: Make "data" transient or serializable.
Because I have Object.class I can't add in this class implements Serializable also I can't transient because I need this object serialize.
How I can fix this codeSmeel by sonar lint?