Skip to content

Commit

Permalink
Explicitly wrap float parameter for consistency (#1671)
Browse files Browse the repository at this point in the history
Follow-up on #1141.
  • Loading branch information
T45K committed Sep 6, 2020
1 parent a5d205c commit b6cfd1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/junit/Assert.java
Expand Up @@ -596,7 +596,7 @@ public static void assertEquals(String message, float expected,
public static void assertNotEquals(String message, float unexpected,
float actual, float delta) {
if (!floatIsDifferent(unexpected, actual, delta)) {
failEquals(message, actual);
failEquals(message, Float.valueOf(actual));
}
}

Expand Down

0 comments on commit b6cfd1e

Please sign in to comment.