Skip to content

Commit

Permalink
Tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
n1v0lg committed Aug 7, 2023
1 parent 1177f01 commit 6b3df09
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ public void writeTo(StreamOutput out) throws IOException {
if (out.getTransportVersion().onOrAfter(TransportVersion.V_8_5_0)) {
out.writeBoolean(withLimitedBy);
}
if (out.getTransportVersion().onOrAfter(TransportVersion.V_8_500_052)) {
out.writeBoolean(activeOnly);
}
}

@Override
Expand All @@ -160,12 +163,13 @@ public boolean equals(Object o) {
&& Objects.equals(userName, that.userName)
&& Objects.equals(apiKeyId, that.apiKeyId)
&& Objects.equals(apiKeyName, that.apiKeyName)
&& withLimitedBy == that.withLimitedBy;
&& withLimitedBy == that.withLimitedBy
&& activeOnly == that.activeOnly;
}

@Override
public int hashCode() {
return Objects.hash(realmName, userName, apiKeyId, apiKeyName, ownedByAuthenticatedUser, withLimitedBy);
return Objects.hash(realmName, userName, apiKeyId, apiKeyName, ownedByAuthenticatedUser, withLimitedBy, activeOnly);
}

public static Builder builder() {
Expand Down

0 comments on commit 6b3df09

Please sign in to comment.