[LIB-10] SerialVersionUID for Serializable classes
[snooker-score-api.git] / src / main / java / org / hedgecode / snooker / json / JsonRanking.java
index 02e08f5..6be0124 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,8 @@
 
 package org.hedgecode.snooker.json;
 
+import java.io.Serializable;
+
 import com.google.gson.annotations.Expose;
 import com.google.gson.annotations.SerializedName;
 
@@ -29,7 +31,9 @@ import org.hedgecode.snooker.api.Season;
  *
  * @author Dmitry Samoshin aka gotty
  */
-public class JsonRanking extends JsonIdEntity implements Ranking {
+public class JsonRanking extends JsonIdEntity implements Ranking, Serializable {
+
+    private static final long serialVersionUID = -8009582917499815478L;
 
     @SerializedName("ID")
     private int rankingId;
@@ -50,6 +54,9 @@ public class JsonRanking extends JsonIdEntity implements Ranking {
     @Expose
     private RankingType rankingType;
 
+    JsonRanking() {
+    }
+
     @Override
     public int rankingId() {
         return rankingId;