Skip to content

Commit

Permalink
chore: update path parameter
Browse files Browse the repository at this point in the history
Signed-off-by: Otavio Santana <otaviopolianasantana@gmail.com>
  • Loading branch information
otaviojava committed Jan 1, 2025
1 parent 3d94768 commit 45b7fa3
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,9 @@ public boolean equals(Object o) {
if (this == o) {
return true;
}
if (!(o instanceof DatabaseMetadata)) {
if (!(o instanceof DatabaseMetadata that)) {
return false;
}
DatabaseMetadata that = (DatabaseMetadata) o;
return type == that.type &&
Objects.equals(provider, that.provider);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,9 @@ public boolean equals(Object o) {
if (this == o) {
return true;
}
if (!(o instanceof EntityPostPersist)) {
if (!(o instanceof EntityPostPersist that)) {
return false;
}
EntityPostPersist that = (EntityPostPersist) o;
return Objects.equals(value, that.value);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,9 @@ public boolean equals(Object o) {
if (this == o) {
return true;
}
if (!(o instanceof EntityPrePersist)) {
if (!(o instanceof EntityPrePersist that)) {
return false;
}
EntityPrePersist that = (EntityPrePersist) o;
return Objects.equals(value, that.value);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,9 @@ public boolean equals(Object o) {
if (this == o) {
return true;
}
if (!(o instanceof Animal)) {
if (!(o instanceof Animal animal)) {
return false;
}
Animal animal = (Animal) o;
return Objects.equals(id, animal.id) &&
Objects.equals(name, animal.name);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,9 @@ public boolean equals(Object o) {
if (this == o) {
return true;
}
if (!(o instanceof Book)) {
if (!(o instanceof Book book)) {
return false;
}
Book book = (Book) o;
return Objects.equals(id, book.id);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,9 @@ public boolean equals(Object o) {
if (this == o) {
return true;
}
if (!(o instanceof Animal)) {
if (!(o instanceof Animal animal)) {
return false;
}
Animal animal = (Animal) o;
return Objects.equals(id, animal.id) &&
Objects.equals(name, animal.name);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,9 @@ public boolean equals(Object o) {
if (this == o) {
return true;
}
if (!(o instanceof Book)) {
if (!(o instanceof Book book)) {
return false;
}
Book book = (Book) o;
return Objects.equals(id, book.id);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,9 @@ public boolean equals(Object o) {
if (this == o) {
return true;
}
if (!(o instanceof DefaultEntityMetadata)) {
if (!(o instanceof DefaultEntityMetadata that)) {
return false;
}
DefaultEntityMetadata that = (DefaultEntityMetadata) o;
return Objects.equals(type, that.type);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,9 @@ public boolean equals(Object o) {
if (this == o) {
return true;
}
if (!(o instanceof Animal)) {
if (!(o instanceof Animal animal)) {
return false;
}
Animal animal = (Animal) o;
return Objects.equals(id, animal.id) &&
Objects.equals(name, animal.name);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,9 @@ public boolean equals(Object o) {
if (this == o) {
return true;
}
if (!(o instanceof Book)) {
if (!(o instanceof Book book)) {
return false;
}
Book book = (Book) o;
return Objects.equals(id, book.id);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,9 @@ public boolean equals(Object o) {
if (this == o) {
return true;
}
if (!(o instanceof Book)) {
if (!(o instanceof Book book)) {
return false;
}
Book book = (Book) o;
return Objects.equals(id, book.id);
}

Expand Down

0 comments on commit 45b7fa3

Please sign in to comment.