From 9080343a8433ee06aa725b8aefc9ca8b4ab4dea2 Mon Sep 17 00:00:00 2001 From: Omertron Date: Tue, 27 Mar 2012 10:47:32 +0000 Subject: [PATCH] Corrected width in Artwork to be an int not string --- .../com/moviejukebox/themoviedb/model/Artwork.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/themoviedbapi/src/main/java/com/moviejukebox/themoviedb/model/Artwork.java b/themoviedbapi/src/main/java/com/moviejukebox/themoviedb/model/Artwork.java index e739de0c1..90d4e81ce 100644 --- a/themoviedbapi/src/main/java/com/moviejukebox/themoviedb/model/Artwork.java +++ b/themoviedbapi/src/main/java/com/moviejukebox/themoviedb/model/Artwork.java @@ -39,7 +39,7 @@ public class Artwork { @JsonProperty("iso_639_1") private String language; @JsonProperty("width") - private String width; + private int width; @JsonProperty("vote_average") private float voteAverage; @JsonProperty("vote_count") @@ -67,7 +67,7 @@ public class Artwork { return language; } - public String getWidth() { + public int getWidth() { return width; } @@ -101,7 +101,7 @@ public class Artwork { this.language = language; } - public void setWidth(String width) { + public void setWidth(int width) { this.width = width; } @@ -149,7 +149,7 @@ public class Artwork { if ((this.language == null) ? (other.language != null) : !this.language.equals(other.language)) { return false; } - if ((this.width == null) ? (other.width != null) : !this.width.equals(other.width)) { + if (this.width != other.width) { return false; } if (this.artworkType != other.artworkType) { @@ -165,7 +165,7 @@ public class Artwork { hash = 71 * hash + (this.filePath != null ? this.filePath.hashCode() : 0); hash = 71 * hash + this.height; hash = 71 * hash + (this.language != null ? this.language.hashCode() : 0); - hash = 71 * hash + (this.width != null ? this.width.hashCode() : 0); + hash = 71 * hash + this.width; hash = 71 * hash + (this.artworkType != null ? this.artworkType.hashCode() : 0); return hash; }