mirror of https://github.com/grpc/grpc-java.git
core: compare doubles with compare instead of ==
Always not compare equality for doubles with `==`.
This commit is contained in:
parent
0a598c053c
commit
0eafb8e9ca
|
|
@ -77,7 +77,7 @@ final class RetryPolicy {
|
||||||
return this.maxAttempts == that.maxAttempts
|
return this.maxAttempts == that.maxAttempts
|
||||||
&& this.initialBackoffNanos == that.initialBackoffNanos
|
&& this.initialBackoffNanos == that.initialBackoffNanos
|
||||||
&& this.maxBackoffNanos == that.maxBackoffNanos
|
&& this.maxBackoffNanos == that.maxBackoffNanos
|
||||||
&& this.backoffMultiplier == that.backoffMultiplier
|
&& Double.compare(this.backoffMultiplier, that.backoffMultiplier) == 0
|
||||||
&& Objects.equal(this.retryableStatusCodes, that.retryableStatusCodes);
|
&& Objects.equal(this.retryableStatusCodes, that.retryableStatusCodes);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue