> + return name;
> + }
> +
> + /**
> + * This provides GSON enum support in jclouds.
> + * */
> + public static RuleDirection fromValue(String name){
> + if (name != null) {
> + for (RuleDirection value : RuleDirection.values()) {
> + if (name.equalsIgnoreCase(value.name)) {
> + return value;
> + }
> + }
> + return UNRECOGNIZED;
> + }
> + return null;
[minor] Just a style thing to remove an indent:
```
// handle the "special case" first?
if (name == null) {
return null;
}
for (...)
```
?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/132/files#r16929827