You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2021/02/21 19:08:14 UTC
[commons-lang] branch master updated: Fix compiler warnings.
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git
The following commit(s) were added to refs/heads/master by this push:
new dff8edf Fix compiler warnings.
dff8edf is described below
commit dff8edf3a980aabcaa2f8fb823f5ea367c17a01d
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Feb 21 14:08:10 2021 -0500
Fix compiler warnings.
---
src/test/java/org/apache/commons/lang3/tuple/MutablePairTest.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/test/java/org/apache/commons/lang3/tuple/MutablePairTest.java b/src/test/java/org/apache/commons/lang3/tuple/MutablePairTest.java
index 74eb253..1f6c04e 100644
--- a/src/test/java/org/apache/commons/lang3/tuple/MutablePairTest.java
+++ b/src/test/java/org/apache/commons/lang3/tuple/MutablePairTest.java
@@ -120,13 +120,12 @@ public class MutablePairTest {
final MutablePair<Object, String> pair2 = MutablePair.of(null, "bar");
assertNull(pair2.getLeft());
assertEquals("bar", pair2.getRight());
- final MutablePair pair3 = MutablePair.of(null, null);
+ final MutablePair<?, ?> pair3 = MutablePair.of(null, null);
assertNull(pair3.left);
assertNull(pair3.right);
}
@Test
- @SuppressWarnings("unchecked")
public void testSerialization() throws Exception {
final MutablePair<Integer, String> origPair = MutablePair.of(0, "foo");
final MutablePair<Integer, String> deserializedPair = SerializationUtils.roundtrip(origPair);