[#8035] Missing serialVersionUID when class implements Serializable interface
This commit is contained in:
parent
47a9064eec
commit
c51b405565
@ -48,7 +48,9 @@ public class ClientConfigMetricRequest extends ServerRequest {
|
||||
}
|
||||
|
||||
public static class MetricsKey implements Serializable {
|
||||
|
||||
|
||||
private static final long serialVersionUID = -2731160029960311757L;
|
||||
|
||||
String type;
|
||||
|
||||
String key;
|
||||
|
@ -26,7 +26,9 @@ import java.util.Objects;
|
||||
* @version $Id: ServerRemoteAbility.java, v 0.1 2021年01月24日 00:09 AM liuzunfei Exp $
|
||||
*/
|
||||
public class ServerRemoteAbility implements Serializable {
|
||||
|
||||
|
||||
private static final long serialVersionUID = -3069795759506428390L;
|
||||
|
||||
/**
|
||||
* if support remote connection.
|
||||
*/
|
||||
|
@ -27,9 +27,11 @@ import java.util.concurrent.atomic.AtomicLong;
|
||||
*/
|
||||
@SuppressWarnings({"PMD.AbstractClassShouldStartWithAbstractNamingRule"})
|
||||
public abstract class Event implements Serializable {
|
||||
|
||||
|
||||
private static final long serialVersionUID = -3731383194964997493L;
|
||||
|
||||
private static final AtomicLong SEQUENCE = new AtomicLong(0);
|
||||
|
||||
|
||||
private final long sequence = SEQUENCE.getAndIncrement();
|
||||
|
||||
/**
|
||||
|
@ -29,7 +29,9 @@ import java.util.Map;
|
||||
* @version $Id: ClusterInfo.java, v 0.1 2018-09-17 上午11:36 caogu.wyp Exp $$
|
||||
*/
|
||||
public class ClusterInfo implements Serializable {
|
||||
|
||||
|
||||
private static final long serialVersionUID = 2146881454057032105L;
|
||||
|
||||
private String clusterName;
|
||||
|
||||
private AbstractHealthChecker healthChecker;
|
||||
|
@ -26,7 +26,9 @@ import java.util.Map;
|
||||
* @version $Id: IpAddressInfo.java, v 0.1 2018-09-17 上午10:52 caogu.wyp Exp $$
|
||||
*/
|
||||
public class IpAddressInfo implements Serializable {
|
||||
|
||||
|
||||
private static final long serialVersionUID = 6961930421629345179L;
|
||||
|
||||
private boolean valid;
|
||||
|
||||
private Map<String, String> metadata;
|
||||
|
@ -28,7 +28,9 @@ import java.util.Map;
|
||||
* @version $Id: ServiceDetailInfo.java, v 0.1 2018-09-17 上午10:47 caogu.wyp Exp $$
|
||||
*/
|
||||
public class ServiceDetailInfo implements Serializable {
|
||||
|
||||
|
||||
private static final long serialVersionUID = 6351606608785841722L;
|
||||
|
||||
private String namespace;
|
||||
|
||||
private String serviceName;
|
||||
|
@ -26,7 +26,9 @@ import java.util.List;
|
||||
* @version $Id: Subscribers.java, v 0.1 2019-05-28 下午10:47 nicholas Exp $$
|
||||
*/
|
||||
public class Subscribers implements Serializable {
|
||||
|
||||
|
||||
private static final long serialVersionUID = -3075690233070417052L;
|
||||
|
||||
private List<Subscriber> subscribers;
|
||||
|
||||
public List<Subscriber> getSubscribers() {
|
||||
|
Loading…
Reference in New Issue
Block a user