This commit is contained in:
Nick 2015-12-28 14:04:34 -08:00
parent e6354fb483
commit beb85cf154
18 changed files with 33 additions and 132 deletions

View file

@ -12,11 +12,10 @@ public class PropertyString extends PropertyHelper {
private final ImmutableSet allowedValues;
@SuppressWarnings("unchecked")
protected PropertyString(String name, String[] values) {
super(name, String.class);
HashSet hashSet = Sets.newHashSet();
HashSet<String> hashSet = Sets.newHashSet();
hashSet.addAll(Arrays.asList(values));
allowedValues = ImmutableSet.copyOf(hashSet);
}