Skip to content

Commit 4b5e3ee

Browse files
committed
keep using getClass()
1 parent c6db05a commit 4b5e3ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/uid2/shared/model/Service.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public String toString() {
7979
@Override
8080
public boolean equals(Object o) {
8181
if (this == o) return true;
82-
if (!(o instanceof Service)) return false;
82+
if (o == null || getClass() != o.getClass()) return false;
8383
Service other = (Service) o;
8484

8585
return serviceId == other.serviceId

0 commit comments

Comments
 (0)