From 2e7c85a41a36b0919fb2ac1cc5bc3c18c3d595e5 Mon Sep 17 00:00:00 2001 From: Stuart Boston Date: Tue, 14 Oct 2014 13:49:42 +0100 Subject: [PATCH] Change to emptyList() --- .../java/com/omertron/themoviedbapi/model/MovieDbList.java | 3 +-- .../com/omertron/themoviedbapi/wrapper/WrapperConfig.java | 2 +- .../com/omertron/themoviedbapi/wrapper/WrapperImages.java | 6 +++--- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/omertron/themoviedbapi/model/MovieDbList.java b/src/main/java/com/omertron/themoviedbapi/model/MovieDbList.java index 834881910..6bb3db793 100644 --- a/src/main/java/com/omertron/themoviedbapi/model/MovieDbList.java +++ b/src/main/java/com/omertron/themoviedbapi/model/MovieDbList.java @@ -20,7 +20,6 @@ package com.omertron.themoviedbapi.model; import com.fasterxml.jackson.annotation.JsonProperty; - import java.util.Collections; import java.util.List; @@ -40,7 +39,7 @@ public class MovieDbList extends AbstractJsonMapping { @JsonProperty("favorite_count") private int favoriteCount; @JsonProperty("items") - private List items = Collections.EMPTY_LIST; + private List items = Collections.emptyList(); @JsonProperty("item_count") private int itemCount; @JsonProperty("iso_639_1") diff --git a/src/main/java/com/omertron/themoviedbapi/wrapper/WrapperConfig.java b/src/main/java/com/omertron/themoviedbapi/wrapper/WrapperConfig.java index 7f194dd84..23be14b02 100644 --- a/src/main/java/com/omertron/themoviedbapi/wrapper/WrapperConfig.java +++ b/src/main/java/com/omertron/themoviedbapi/wrapper/WrapperConfig.java @@ -33,7 +33,7 @@ public class WrapperConfig extends AbstractWrapper { @JsonProperty("images") private TmdbConfiguration tmdbConfiguration; @JsonProperty("change_keys") - private List changeKeys = Collections.EMPTY_LIST; + private List changeKeys = Collections.emptyList(); public TmdbConfiguration getTmdbConfiguration() { return tmdbConfiguration; diff --git a/src/main/java/com/omertron/themoviedbapi/wrapper/WrapperImages.java b/src/main/java/com/omertron/themoviedbapi/wrapper/WrapperImages.java index eeb0dd7de..7ded91dcb 100644 --- a/src/main/java/com/omertron/themoviedbapi/wrapper/WrapperImages.java +++ b/src/main/java/com/omertron/themoviedbapi/wrapper/WrapperImages.java @@ -36,11 +36,11 @@ public class WrapperImages extends AbstractWrapperAll implements Serializable { private static final long serialVersionUID = 1L; @JsonProperty("backdrops") - private List backdrops = Collections.EMPTY_LIST; + private List backdrops = Collections.emptyList(); @JsonProperty("posters") - private List posters = Collections.EMPTY_LIST; + private List posters = Collections.emptyList(); @JsonProperty("profiles") - private List profiles = Collections.EMPTY_LIST; + private List profiles = Collections.emptyList(); public List getBackdrops() { return backdrops;