Skip to content

Commit

Permalink
Using Iterable instead of Collection
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Jan 15, 2014
1 parent b02199f commit da77478
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import java.lang.annotation.Annotation;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

import org.jboss.forge.addon.ui.annotation.Command;
Expand Down Expand Up @@ -90,7 +89,7 @@ public void initializeUI(UIBuilder builder) throws Exception

String paramName = (option == null || option.value().isEmpty()) ? "param" + position : option.value();
InputComponent<?, ?> input;
if (Collection.class.isAssignableFrom(parameterType))
if (Iterable.class.isAssignableFrom(parameterType))
{
// TODO: UIInputMany or UISelectMany ?
input = factory.createInputMany(paramName, parameterType);
Expand Down

0 comments on commit da77478

Please sign in to comment.