Unnecessary @SuppressWarnings("unchecked")
This commit is contained in:
parent
85a7f721cc
commit
e3e020fe2f
|
@ -80,7 +80,6 @@ public final class ImmutableTriple<L, M, R> extends Triple<L, M, R> {
|
||||||
* @return an immutable triple of nulls.
|
* @return an immutable triple of nulls.
|
||||||
* @since 3.6
|
* @since 3.6
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("unchecked")
|
|
||||||
public static <L, M, R> ImmutableTriple<L, M, R> nullTriple() {
|
public static <L, M, R> ImmutableTriple<L, M, R> nullTriple() {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
|
@ -193,7 +193,6 @@ public class ImmutablePairTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@SuppressWarnings("unchecked")
|
|
||||||
public void testSerialization() throws Exception {
|
public void testSerialization() throws Exception {
|
||||||
final ImmutablePair<Integer, String> origPair = ImmutablePair.of(0, "foo");
|
final ImmutablePair<Integer, String> origPair = ImmutablePair.of(0, "foo");
|
||||||
final ImmutablePair<Integer, String> deserializedPair = SerializationUtils.roundtrip(origPair);
|
final ImmutablePair<Integer, String> deserializedPair = SerializationUtils.roundtrip(origPair);
|
||||||
|
|
|
@ -131,7 +131,6 @@ public class ImmutableTripleTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@SuppressWarnings("unchecked")
|
|
||||||
public void testSerialization() throws Exception {
|
public void testSerialization() throws Exception {
|
||||||
final ImmutableTriple<Integer, String, Boolean> origTriple = ImmutableTriple.of(0, "foo", Boolean.TRUE);
|
final ImmutableTriple<Integer, String, Boolean> origTriple = ImmutableTriple.of(0, "foo", Boolean.TRUE);
|
||||||
final ImmutableTriple<Integer, String, Boolean> deserializedTriple = SerializationUtils.roundtrip(origTriple);
|
final ImmutableTriple<Integer, String, Boolean> deserializedTriple = SerializationUtils.roundtrip(origTriple);
|
||||||
|
|
|
@ -105,7 +105,6 @@ public class MutableTripleTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@SuppressWarnings("unchecked")
|
|
||||||
public void testSerialization() throws Exception {
|
public void testSerialization() throws Exception {
|
||||||
final MutableTriple<Integer, String, Boolean> origTriple = MutableTriple.of(0, "foo", Boolean.TRUE);
|
final MutableTriple<Integer, String, Boolean> origTriple = MutableTriple.of(0, "foo", Boolean.TRUE);
|
||||||
final MutableTriple<Integer, String, Boolean> deserializedTriple = SerializationUtils.roundtrip(origTriple);
|
final MutableTriple<Integer, String, Boolean> deserializedTriple = SerializationUtils.roundtrip(origTriple);
|
||||||
|
|
Loading…
Reference in New Issue