[LIB-10] SerialVersionUID for Serializable classes
[snooker-score-api.git] / src / main / java / org / hedgecode / snooker / json / JsonRound.java
index 7dbb3b1..2737cac 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2017-2019. 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.
 
 package org.hedgecode.snooker.json;
 
+import java.io.Serializable;
+
 import com.google.gson.annotations.Expose;
 import com.google.gson.annotations.SerializedName;
 
+import org.hedgecode.snooker.annotation.WithHTMLTags;
 import org.hedgecode.snooker.api.Event;
 import org.hedgecode.snooker.api.Round;
 
@@ -27,7 +30,9 @@ import org.hedgecode.snooker.api.Round;
  *
  * @author Dmitry Samoshin aka gotty
  */
-public class JsonRound extends JsonIdEntity implements Round {
+public class JsonRound extends JsonIdEntity implements Round, Serializable {
+
+    private static final long serialVersionUID = -2010008975829800984L;
 
     @SerializedName("Round")
     private int round;
@@ -47,6 +52,7 @@ public class JsonRound extends JsonIdEntity implements Round {
     private int numLeft;
     @SerializedName("NumMatches")
     private int numMatches;
+    @WithHTMLTags
     @SerializedName("Note")
     private String note;
     @SerializedName("ValueType")
@@ -68,7 +74,7 @@ public class JsonRound extends JsonIdEntity implements Round {
     @SerializedName("SeedPoints")
     private int seedPoints;
 
-    protected JsonRound() {
+    JsonRound() {
     }
 
     @Override