Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Aug 29, 2023
1 parent 5c70566 commit 9d3c2ed
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ public static <E> Closure<E> switchClosure(final Map<Predicate<E>, Closure<E>> p
* @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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ public static <I, O> Transformer<I, O> switchTransformer(
* @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) {
Expand Down

0 comments on commit 9d3c2ed

Please sign in to comment.