From 9d3c2eda3efaf351139c988d197abea211f55608 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Tue, 29 Aug 2023 08:27:10 -0400 Subject: [PATCH] Remove @SuppressWarnings --- .../org/apache/commons/collections4/functors/SwitchClosure.java | 1 - .../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 implements Closure, 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[] predicates, final Closure[] closures, final Closure 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 implements Transformer, 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[] predicates, final Transformer[] transformers, final Transformer defaultTransformer) {