com.cedarsoftware.util.io.JsonReader requires a public constructor with no arguments (otherwise it'll try to find another constructor and call it with default values, e.g. null may change to 0)

This commit is contained in:
Reinhard Pointner 2016-10-10 05:15:47 +08:00
parent 35c6c33941
commit ae723574b9
3 changed files with 6 additions and 6 deletions

View File

@ -28,8 +28,8 @@ public class SeriesInfo implements Serializable {
protected Integer runtime; protected Integer runtime;
protected String status; protected String status;
protected SeriesInfo() { public SeriesInfo() {
// used by deserializer
} }
public SeriesInfo(SeriesInfo other) { public SeriesInfo(SeriesInfo other) {

View File

@ -18,8 +18,8 @@ public class SimpleDate implements Serializable, Comparable<Object> {
protected int month; protected int month;
protected int day; protected int day;
protected SimpleDate() { public SimpleDate() {
// used by serializer // used by deserializer
} }
public SimpleDate(int year, int month, int day) { public SimpleDate(int year, int month, int day) {

View File

@ -13,8 +13,8 @@ public class TheTVDBSeriesInfo extends SeriesInfo implements Serializable {
protected URL banner; protected URL banner;
protected long lastUpdated; protected long lastUpdated;
protected TheTVDBSeriesInfo() { public TheTVDBSeriesInfo() {
// used by deserializer
} }
public TheTVDBSeriesInfo(TheTVDBSeriesInfo other) { public TheTVDBSeriesInfo(TheTVDBSeriesInfo other) {