> @@ -37,10 +37,7 @@ public String getValue() { > } > > public static NetworkType fromValue(String value) { > - for (NetworkType networkType : values()) { > - if (networkType.getValue().equalsIgnoreCase(value)) > - return networkType; > - } > - return null; > + if (value == null) return null;
This is not a valid input value. But I thought I'd put a null check in to avoid NullPointerExceptions. --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs-openstack/pull/47/files#r7886839