Skip to content

Commit 133eec6

Browse files
committed
update api to java 21
Signed-off-by: Otavio Santana <[email protected]>
1 parent d046a00 commit 133eec6

File tree

2 files changed

+2
-4
lines changed
  • jnosql-tinkerpop/src/test/java/org/eclipse/jnosql/databases/tinkerpop/mapping/entities

2 files changed

+2
-4
lines changed

jnosql-tinkerpop/src/test/java/org/eclipse/jnosql/databases/tinkerpop/mapping/entities/Animal.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,9 @@ public boolean equals(Object o) {
5050
if (this == o) {
5151
return true;
5252
}
53-
if (!(o instanceof Animal)) {
53+
if (!(o instanceof Animal animal)) {
5454
return false;
5555
}
56-
Animal animal = (Animal) o;
5756
return Objects.equals(id, animal.id) &&
5857
Objects.equals(name, animal.name);
5958
}

jnosql-tinkerpop/src/test/java/org/eclipse/jnosql/databases/tinkerpop/mapping/entities/Book.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,9 @@ public boolean equals(Object o) {
5959
if (this == o) {
6060
return true;
6161
}
62-
if (!(o instanceof Book)) {
62+
if (!(o instanceof Book book)) {
6363
return false;
6464
}
65-
Book book = (Book) o;
6665
return Objects.equals(id, book.id);
6766
}
6867

0 commit comments

Comments
 (0)