Skip to content

Commit

Permalink
Fix #1431: Coverity: Bad casts of object references
Browse files Browse the repository at this point in the history
  • Loading branch information
banterCZ committed Mar 27, 2024
1 parent 02a9ced commit dea20a7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ public class Fido2AuthenticatorEntity implements Serializable {
public boolean equals(final Object o) {
if (this == o) return true;
if (o == null || !this.getClass().equals(ProxyUtils.getUserClass(o))) return false;
final Fido2AuthenticatorEntity entity = (Fido2AuthenticatorEntity) o;
return Objects.equals(aaguid, entity.aaguid);
if (!(o instanceof final Fido2AuthenticatorEntity that)) return false;
return Objects.equals(aaguid, that.aaguid);
}

@Override
Expand Down

0 comments on commit dea20a7

Please sign in to comment.