Skip to content

Commit

Permalink
Fix #1039: Remove extra hashCode and equals methods in PowerAuthSigna…
Browse files Browse the repository at this point in the history
…tureMetadata (#1040)
  • Loading branch information
jandusil authored Sep 11, 2023
1 parent 2fac541 commit ae5ad9f
Showing 1 changed file with 1 addition and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.util.Objects;


/**
Expand All @@ -40,23 +39,10 @@ public class PowerAuthSignatureMetadata implements SignatureMetadata {

@Serial
private static final long serialVersionUID = -5167321997819747483L;

@JsonProperty("signatureDataMethod")
private String signatureDataMethod;
@JsonProperty("signatureDataUriId")
private String signatureDataUriId;

@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
PowerAuthSignatureMetadata that = (PowerAuthSignatureMetadata) o;
return Objects.equals(signatureDataMethod, that.signatureDataMethod) &&
Objects.equals(signatureDataUriId, that.signatureDataUriId);
}

@Override
public int hashCode() {
return Objects.hash(signatureDataMethod, signatureDataUriId);
}
}

0 comments on commit ae5ad9f

Please sign in to comment.