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
The following commit(s) were added to refs/heads/master by this push: new 9d3c2eda3 Remove @SuppressWarnings 9d3c2eda3 is described below commit 9d3c2eda3efaf351139c988d197abea211f55608 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Tue Aug 29 08:27:10 2023 -0400 Remove @SuppressWarnings --- .../java/org/apache/commons/collections4/functors/SwitchClosure.java | 1 - .../java/org/apache/commons/collections4/functors/SwitchTransformer.java | 1 - 2 files changed, 2 deletions(-) diff --git a/src/main/java/org/apache/commons/collections4/functors/SwitchClosure.java b/src/main/java/org/apache/commons/collections4/functors/SwitchClosure.java index f800c38ba..632bffbdb 100644 --- a/src/main/java/org/apache/commons/collections4/functors/SwitchClosure.java +++ b/src/main/java/org/apache/commons/collections4/functors/SwitchClosure.java @@ -114,7 +114,6 @@ public class SwitchClosure<E> implements Closure<E>, Serializable { * @param closures matching array of closures, no nulls * @param defaultClosure the closure to use if no match, null means nop */ - @SuppressWarnings("unchecked") private SwitchClosure(final boolean clone, final Predicate<? super E>[] predicates, final Closure<? super E>[] closures, final Closure<? super E> defaultClosure) { iPredicates = clone ? FunctorUtils.copy(predicates) : predicates; diff --git a/src/main/java/org/apache/commons/collections4/functors/SwitchTransformer.java b/src/main/java/org/apache/commons/collections4/functors/SwitchTransformer.java index 916b094c9..55daec727 100644 --- a/src/main/java/org/apache/commons/collections4/functors/SwitchTransformer.java +++ b/src/main/java/org/apache/commons/collections4/functors/SwitchTransformer.java @@ -124,7 +124,6 @@ public class SwitchTransformer<I, O> implements Transformer<I, O>, Serializable * @param transformers matching array of transformers, no nulls * @param defaultTransformer the transformer to use if no match, null means return null */ - @SuppressWarnings("unchecked") private SwitchTransformer(final boolean clone, final Predicate<? super I>[] predicates, final Transformer<? super I, ? extends O>[] transformers, final Transformer<? super I, ? extends O> defaultTransformer) {