Skip to content

Commit

Permalink
fix super calls for equals and hashcode
Browse files Browse the repository at this point in the history
  • Loading branch information
c-eg committed Jan 1, 2024
1 parent 5f33510 commit b5df333
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import org.apache.commons.lang3.StringUtils;

@Data
@EqualsAndHashCode(callSuper = false)
@EqualsAndHashCode(callSuper = true)
@JsonRootName("collection")
public class Collection extends IdElement {
@JsonProperty("title")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
@EqualsAndHashCode(callSuper = true)
public class CollectionInfo extends NamedIdElement {
@JsonProperty("overview")
private String overview;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/info/movito/themoviedbapi/model/Company.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = false)
@EqualsAndHashCode(callSuper = true)
public class Company extends NamedIdElement {
@JsonProperty("description")
private String description;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/info/movito/themoviedbapi/model/Credits.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import java.util.Optional;

@Data
@EqualsAndHashCode(callSuper = false)
@EqualsAndHashCode(callSuper = true)
public class Credits extends IdElement {
@JsonProperty("crew")
List<PersonCrew> crew;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = false)
@EqualsAndHashCode(callSuper = true)
public class ExternalIds extends IdElement {
@JsonProperty("imdb_id")
private String imdbId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = false)
@EqualsAndHashCode(callSuper = true)
public class MovieListCreationStatus extends ResponseStatus {
@JsonProperty("list_id")
private String listId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import org.apache.commons.lang3.StringUtils;

@Data
@EqualsAndHashCode(callSuper = false)
@EqualsAndHashCode(callSuper = true)
public class Person extends NamedIdElement {
@JsonProperty("profile_path")
protected String profilePath;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import org.apache.commons.lang3.StringUtils;

@Data
@EqualsAndHashCode(callSuper = false)
@EqualsAndHashCode(callSuper = true)
public class PersonCast extends Person {
@JsonProperty("character")
private String character;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = false)
@EqualsAndHashCode(callSuper = true)
public class PersonCredit extends IdElement {
// note: id here refers to a movie not a cast or crew
@JsonProperty("original_language")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
@EqualsAndHashCode(callSuper = true)
@JsonTypeInfo(use = JsonTypeInfo.Id.NONE)
public class PersonPeople extends Person implements Multi {
// todo initializers should all go away
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = false)
@EqualsAndHashCode(callSuper = true)
public class AbstractTvElement extends NamedIdElement {
// Appendable responses for all tv elements

Expand Down

0 comments on commit b5df333

Please sign in to comment.