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 2025/06/13 14:49:27 UTC
(commons-collections) 01/03: Remove @SuppressWarnings
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-collections.git
commit 8ba3d3445cc382f27bc5cf23213afab872f35dc4
Author: Gary D. Gregory <ga...@gmail.com>
AuthorDate: Fri Jun 13 10:47:47 2025 -0400
Remove @SuppressWarnings
---
.../commons/collections4/collection/CompositeCollectionTest.java | 5 ++---
.../java/org/apache/commons/collections4/map/MultiValueMapTest.java | 2 --
2 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/src/test/java/org/apache/commons/collections4/collection/CompositeCollectionTest.java b/src/test/java/org/apache/commons/collections4/collection/CompositeCollectionTest.java
index 9e2a1412b..4a02113a4 100644
--- a/src/test/java/org/apache/commons/collections4/collection/CompositeCollectionTest.java
+++ b/src/test/java/org/apache/commons/collections4/collection/CompositeCollectionTest.java
@@ -101,7 +101,6 @@ public class CompositeCollectionTest<E> extends AbstractCollectionTest<E> {
return new CompositeCollection<>();
}
- @SuppressWarnings("serial")
protected void setUpMutatorTest() {
setUpTest();
c.setMutator(new CompositeCollection.CollectionMutator<E>() {
@@ -143,7 +142,7 @@ public class CompositeCollectionTest<E> extends AbstractCollectionTest<E> {
}
@Test
- @SuppressWarnings({ "unchecked", "serial" })
+ @SuppressWarnings({ "unchecked" })
void testAddAllMutator() {
setUpTest();
c.setMutator(new CompositeCollection.CollectionMutator<E>() {
@@ -194,7 +193,7 @@ public class CompositeCollectionTest<E> extends AbstractCollectionTest<E> {
}
@Test
- @SuppressWarnings({ "unchecked", "serial" })
+ @SuppressWarnings({ "unchecked" })
void testAddMutator() {
setUpTest();
c.setMutator(new CompositeCollection.CollectionMutator<E>() {
diff --git a/src/test/java/org/apache/commons/collections4/map/MultiValueMapTest.java b/src/test/java/org/apache/commons/collections4/map/MultiValueMapTest.java
index 6dcae7ad7..e76e03573 100644
--- a/src/test/java/org/apache/commons/collections4/map/MultiValueMapTest.java
+++ b/src/test/java/org/apache/commons/collections4/map/MultiValueMapTest.java
@@ -316,7 +316,6 @@ public class MultiValueMapTest<K, V> extends AbstractObjectTest {
@Test
@SuppressWarnings("unchecked")
void testPutWithList() {
- @SuppressWarnings("rawtypes")
final MultiValueMap<K, V> test = MultiValueMap.multiValueMap(new HashMap<>(), ArrayList.class);
assertEquals("a", test.put((K) "A", "a"));
assertEquals("b", test.put((K) "A", "b"));
@@ -328,7 +327,6 @@ public class MultiValueMapTest<K, V> extends AbstractObjectTest {
@Test
@SuppressWarnings("unchecked")
void testPutWithSet() {
- @SuppressWarnings("rawtypes")
final MultiValueMap<K, V> test = MultiValueMap.multiValueMap(new HashMap<>(), HashSet.class);
assertEquals("a", test.put((K) "A", "a"));
assertEquals("b", test.put((K) "A", "b"));