Generify
This commit is contained in:
parent
e6354fb483
commit
beb85cf154
18 changed files with 33 additions and 132 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue