Unnecessary @SuppressWarnings.
This commit is contained in:
parent
7752a7b980
commit
b4f25f3056
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue