Corrected width in Artwork to be an int not string

master
Omertron 14 years ago
parent 6667b4679a
commit 9080343a84

@ -39,7 +39,7 @@ public class Artwork {
@JsonProperty("iso_639_1") @JsonProperty("iso_639_1")
private String language; private String language;
@JsonProperty("width") @JsonProperty("width")
private String width; private int width;
@JsonProperty("vote_average") @JsonProperty("vote_average")
private float voteAverage; private float voteAverage;
@JsonProperty("vote_count") @JsonProperty("vote_count")
@ -67,7 +67,7 @@ public class Artwork {
return language; return language;
} }
public String getWidth() { public int getWidth() {
return width; return width;
} }
@ -101,7 +101,7 @@ public class Artwork {
this.language = language; this.language = language;
} }
public void setWidth(String width) { public void setWidth(int width) {
this.width = width; this.width = width;
} }
@ -149,7 +149,7 @@ public class Artwork {
if ((this.language == null) ? (other.language != null) : !this.language.equals(other.language)) { if ((this.language == null) ? (other.language != null) : !this.language.equals(other.language)) {
return false; return false;
} }
if ((this.width == null) ? (other.width != null) : !this.width.equals(other.width)) { if (this.width != other.width) {
return false; return false;
} }
if (this.artworkType != other.artworkType) { 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.filePath != null ? this.filePath.hashCode() : 0);
hash = 71 * hash + this.height; hash = 71 * hash + this.height;
hash = 71 * hash + (this.language != null ? this.language.hashCode() : 0); 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); hash = 71 * hash + (this.artworkType != null ? this.artworkType.hashCode() : 0);
return hash; return hash;
} }

Loading…
Cancel
Save