Skip to content

Commit

Permalink
Get rid of deprecated Double and Float constructor usage (assertj#1480)
Browse files Browse the repository at this point in the history
  • Loading branch information
epeee authored and joel-costigliola committed Apr 1, 2019
1 parent 0fd59e1 commit 680f3ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
public abstract class AbstractDoubleAssert<SELF extends AbstractDoubleAssert<SELF>> extends
AbstractComparableAssert<SELF, Double> implements FloatingPointNumberAssert<SELF, Double> {

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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
public abstract class AbstractFloatAssert<SELF extends AbstractFloatAssert<SELF>> extends AbstractComparableAssert<SELF, Float>
implements FloatingPointNumberAssert<SELF, Float> {

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();
Expand Down

0 comments on commit 680f3ae

Please sign in to comment.