Skip to content

Commit 150f22f

Browse files
committed
chore: fixes code smell
1 parent 278c0ac commit 150f22f

File tree

1 file changed

+1
-2
lines changed
  • src/main/java/com/switcherapi/client/model

1 file changed

+1
-2
lines changed

src/main/java/com/switcherapi/client/model/Entry.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ public int hashCode() {
6262

6363
@Override
6464
public boolean equals(Object obj) {
65-
if (obj instanceof Entry) {
66-
Entry entry = (Entry) obj;
65+
if (obj instanceof Entry entry) {
6766
if (!this.strategy.equals(entry.getStrategy())) {
6867
return false;
6968
}

0 commit comments

Comments
 (0)