Unnecessary @SuppressWarnings("unchecked")

This commit is contained in:
Gary Gregory 2022-03-07 15:24:15 -05:00
parent 85a7f721cc
commit e3e020fe2f
4 changed files with 0 additions and 4 deletions

View File

@ -80,7 +80,6 @@ public final class ImmutableTriple<L, M, R> extends Triple<L, M, R> {
* @return an immutable triple of nulls.
* @since 3.6
*/
@SuppressWarnings("unchecked")
public static <L, M, R> ImmutableTriple<L, M, R> nullTriple() {
return NULL;
}

View File

@ -193,7 +193,6 @@ public class ImmutablePairTest {
}
@Test
@SuppressWarnings("unchecked")
public void testSerialization() throws Exception {
final ImmutablePair<Integer, String> origPair = ImmutablePair.of(0, "foo");
final ImmutablePair<Integer, String> deserializedPair = SerializationUtils.roundtrip(origPair);

View File

@ -131,7 +131,6 @@ public class ImmutableTripleTest {
}
@Test
@SuppressWarnings("unchecked")
public void testSerialization() throws Exception {
final ImmutableTriple<Integer, String, Boolean> origTriple = ImmutableTriple.of(0, "foo", Boolean.TRUE);
final ImmutableTriple<Integer, String, Boolean> deserializedTriple = SerializationUtils.roundtrip(origTriple);

View File

@ -105,7 +105,6 @@ public class MutableTripleTest {
}
@Test
@SuppressWarnings("unchecked")
public void testSerialization() throws Exception {
final MutableTriple<Integer, String, Boolean> origTriple = MutableTriple.of(0, "foo", Boolean.TRUE);
final MutableTriple<Integer, String, Boolean> deserializedTriple = SerializationUtils.roundtrip(origTriple);