Remove @SuppressWarnings

This commit is contained in:
Gary Gregory 2023-08-29 08:27:10 -04:00
parent 5c7056603e
commit 9d3c2eda3e
2 changed files with 0 additions and 2 deletions

View File

@ -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;

View File

@ -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) {