From 680f3aeb5ce9a831cf6228c28ba5ae4e056312c1 Mon Sep 17 00:00:00 2001 From: Erhard Pointl Date: Mon, 1 Apr 2019 03:41:44 +0200 Subject: [PATCH] Get rid of deprecated Double and Float constructor usage (#1480) --- src/main/java/org/assertj/core/api/AbstractDoubleAssert.java | 2 +- src/main/java/org/assertj/core/api/AbstractFloatAssert.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/assertj/core/api/AbstractDoubleAssert.java b/src/main/java/org/assertj/core/api/AbstractDoubleAssert.java index 5fa684ed61..a7d2a578d0 100644 --- a/src/main/java/org/assertj/core/api/AbstractDoubleAssert.java +++ b/src/main/java/org/assertj/core/api/AbstractDoubleAssert.java @@ -44,7 +44,7 @@ public abstract class AbstractDoubleAssert> extends AbstractComparableAssert implements FloatingPointNumberAssert { - private static final Double NEGATIVE_ZERO = new Double(-0.0); + private static final Double NEGATIVE_ZERO = Double.valueOf(-0.0); @VisibleForTesting Doubles doubles = Doubles.instance(); diff --git a/src/main/java/org/assertj/core/api/AbstractFloatAssert.java b/src/main/java/org/assertj/core/api/AbstractFloatAssert.java index f31e721b1b..a742864c4f 100644 --- a/src/main/java/org/assertj/core/api/AbstractFloatAssert.java +++ b/src/main/java/org/assertj/core/api/AbstractFloatAssert.java @@ -42,7 +42,7 @@ public abstract class AbstractFloatAssert> extends AbstractComparableAssert implements FloatingPointNumberAssert { - private static final Float NEGATIVE_ZERO = new Float(-0.0); + private static final Float NEGATIVE_ZERO = Float.valueOf(-0.0f); @VisibleForTesting Floats floats = Floats.instance();