Add clarifying parentheses to a ternary expression. (#2496)
The latest Error Prone version issues a warning without the parentheses. Since we build with `-Werror`, that breaks the build.
This commit is contained in:
parent
e93fda9f17
commit
edfaf0c387
|
@ -285,7 +285,7 @@ public final class JsonPrimitive extends JsonElement {
|
|||
return other.value == null;
|
||||
}
|
||||
if (isIntegral(this) && isIntegral(other)) {
|
||||
return this.value instanceof BigInteger || other.value instanceof BigInteger
|
||||
return (this.value instanceof BigInteger || other.value instanceof BigInteger)
|
||||
? this.getAsBigInteger().equals(other.getAsBigInteger())
|
||||
: this.getAsNumber().longValue() == other.getAsNumber().longValue();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue