> +
> + public static OSFamliyType fromValue(String v) {
> + return Enums.getIfPresent(OSFamliyType.class,
> v).or(UNRECOGNIZED);
> + }
> +
> + // the value which is used for matching
> + // the json node value with this enum
> + private final String value;
> +
> + OSFamliyType(final String type) {
> + value = type;
> + }
> +
> + @Override
> + public String toString() {
> + return value;
Do we need to actually "produce" the empty string as the enum value, when it is
UNRECOGNIZED? If not, you can get rid of the value variable, the constructor
and this method, as the default enum implementation will use the `name()`
method.
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/275/files/0767d011a984011133c9e34b3389b449ca0756cd#r68667914