Skip to content

Commit

Permalink
[ISSUE #4024] Change to use equals() to compare object.[QueryOperatio…
Browse files Browse the repository at this point in the history
…nsRequest]
  • Loading branch information
yanrongzhen committed Oct 11, 2023
1 parent 47203c7 commit d2ce6c9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ public static Builder newBuilder(QueryOperationsRequest prototype) {

@Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
return this.equals(DEFAULT_INSTANCE)
? new Builder() : new Builder().mergeFrom(this);
}

Expand Down Expand Up @@ -518,7 +518,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
}

public Builder mergeFrom(QueryOperationsRequest other) {
if (other == QueryOperationsRequest.getDefaultInstance()) {
if (other.equals(QueryOperationsRequest.getDefaultInstance())) {
return this;
}
if (!other.getServiceName().isEmpty()) {
Expand Down

0 comments on commit d2ce6c9

Please sign in to comment.