Wrappers do not need to be serializable
This commit is contained in:
@@ -21,15 +21,12 @@ package com.omertron.themoviedbapi.wrapper;
|
||||
|
||||
import com.omertron.themoviedbapi.model.AbstractJsonMapping;
|
||||
import com.omertron.themoviedbapi.results.AbstractResults;
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.EnumSet;
|
||||
import java.util.List;
|
||||
|
||||
public abstract class AbstractWrapper extends AbstractJsonMapping implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
public abstract class AbstractWrapper extends AbstractJsonMapping {
|
||||
|
||||
/**
|
||||
* Get a list of the enums passed
|
||||
|
||||
@@ -21,16 +21,14 @@ package com.omertron.themoviedbapi.wrapper;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.omertron.themoviedbapi.model.keyword.Keyword;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Stuart
|
||||
*/
|
||||
public class WrapperMovieKeywords extends AbstractWrapperId implements Serializable {
|
||||
public class WrapperMovieKeywords extends AbstractWrapperId {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@JsonProperty("keywords")
|
||||
private List<Keyword> keywords;
|
||||
|
||||
|
||||
@@ -21,16 +21,14 @@ package com.omertron.themoviedbapi.wrapper;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.omertron.themoviedbapi.model.movie.ReleaseInfo;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Stuart
|
||||
*/
|
||||
public class WrapperReleaseInfo extends AbstractWrapperId implements Serializable {
|
||||
public class WrapperReleaseInfo extends AbstractWrapperId {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@JsonProperty("countries")
|
||||
private List<ReleaseInfo> countries;
|
||||
|
||||
|
||||
@@ -21,16 +21,14 @@ package com.omertron.themoviedbapi.wrapper;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.omertron.themoviedbapi.model.media.Translation;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Stuart
|
||||
*/
|
||||
public class WrapperTranslations extends AbstractWrapperId implements Serializable {
|
||||
public class WrapperTranslations extends AbstractWrapperId {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@JsonProperty("translations")
|
||||
private List<Translation> translations;
|
||||
|
||||
|
||||
@@ -22,7 +22,6 @@ package com.omertron.themoviedbapi.wrapper;
|
||||
import com.fasterxml.jackson.annotation.JsonSetter;
|
||||
import com.omertron.themoviedbapi.model.media.Trailer;
|
||||
import com.omertron.themoviedbapi.model.media.Video;
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@@ -30,9 +29,8 @@ import java.util.List;
|
||||
*
|
||||
* @author Stuart
|
||||
*/
|
||||
public class WrapperVideos extends AbstractWrapperId implements Serializable {
|
||||
public class WrapperVideos extends AbstractWrapperId {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
private List<Video> videos = null;
|
||||
|
||||
public List<Video> getVideos() {
|
||||
|
||||
Reference in New Issue
Block a user