[LIB-10] SerialVersionUID for Serializable classes
[snooker-score-api.git] / src / main / java / org / hedgecode / snooker / json / JsonEvent.java
index e7a256d..526389f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2017. Developed by Hedgecode.
+ * Copyright (c) 2017-2020. Developed by Hedgecode.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
 
 package org.hedgecode.snooker.json;
 
+import java.io.Serializable;
 import java.util.Date;
 
 import com.google.gson.annotations.Expose;
@@ -34,7 +35,9 @@ import org.hedgecode.snooker.api.Season;
  *
  * @author Dmitry Samoshin aka gotty
  */
-public class JsonEvent extends JsonIdEntity implements Event {
+public class JsonEvent extends JsonIdEntity implements Event, Serializable {
+
+    private static final long serialVersionUID = 3074418501643772690L;
 
     @SerializedName("ID")
     private int eventId;
@@ -127,7 +130,7 @@ public class JsonEvent extends JsonIdEntity implements Event {
     @Expose
     private Event previousEdition;
 
-    protected JsonEvent() {
+    JsonEvent() {
     }
 
     @Override