Remove @SuppressWarnings
This commit is contained in:
parent
5c7056603e
commit
9d3c2eda3e
|
@ -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;
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue