Skip to content

Commit c0430fe

Browse files
cpovirkGoogle Java Core Libraries
authored andcommitted
Inline calls to Doubles.isFinite.
RELNOTES=n/a PiperOrigin-RevId: 751171925
1 parent 9f5136b commit c0430fe

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

core/src/main/java/com/google/common/truth/MathUtil.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818

1919
import static java.lang.Math.subtractExact;
2020

21-
import com.google.common.primitives.Doubles;
22-
2321
/** Math utilities to be shared by numeric subjects. */
2422
final class MathUtil {
2523
private MathUtil() {}
@@ -76,7 +74,7 @@ public static boolean equalWithinTolerance(float left, float right, float tolera
7674
* either {@code left} or {@code right} is infinite or NaN.
7775
*/
7876
public static boolean notEqualWithinTolerance(double left, double right, double tolerance) {
79-
if (Doubles.isFinite(left) && Doubles.isFinite(right)) {
77+
if (Double.isFinite(left) && Double.isFinite(right)) {
8078
return Math.abs(left - right) > Math.abs(tolerance);
8179
} else {
8280
return false;

0 commit comments

Comments
 (0)