Unnecessary @SuppressWarnings.

This commit is contained in:
Gary Gregory 2022-03-07 15:38:02 -05:00
parent 7752a7b980
commit b4f25f3056
1 changed files with 0 additions and 4 deletions

View File

@ -207,7 +207,6 @@ public class HashCodeBuilderTest {
}
@Test
@SuppressWarnings("cast") // cast is not really needed, keep for consistency
public void testLong() {
assertEquals(17 * 37, new HashCodeBuilder(17, 37).append(0L).toHashCode());
assertEquals(17 * 37 + (int) (123456789L ^ 123456789L >> 32), new HashCodeBuilder(17, 37).append(
@ -215,7 +214,6 @@ public class HashCodeBuilderTest {
}
@Test
@SuppressWarnings("cast") // cast is not really needed, keep for consistency
public void testInt() {
assertEquals(17 * 37, new HashCodeBuilder(17, 37).append(0).toHashCode());
assertEquals(17 * 37 + 123456, new HashCodeBuilder(17, 37).append(123456).toHashCode());
@ -240,7 +238,6 @@ public class HashCodeBuilderTest {
}
@Test
@SuppressWarnings("cast") // cast is not really needed, keep for consistency
public void testDouble() {
assertEquals(17 * 37, new HashCodeBuilder(17, 37).append(0d).toHashCode());
final double d = 1234567.89;
@ -249,7 +246,6 @@ public class HashCodeBuilderTest {
}
@Test
@SuppressWarnings("cast") // cast is not really needed, keep for consistency
public void testFloat() {
assertEquals(17 * 37, new HashCodeBuilder(17, 37).append(0f).toHashCode());
final float f = 1234.89f;