openstack: fixing SecurityGroup.cidr deserialization

This commit is contained in:
Adam Lowe 2012-07-03 12:35:53 +01:00
parent a23048cab2
commit 1d32af6427
1 changed files with 3 additions and 2 deletions

View File

@ -38,8 +38,9 @@ public class SecurityGroupRule extends Ingress {
public static class Cidr extends ForwardingObject {
private String cidr;
private Cidr(String cidr) {
this.cidr = cidr;
@ConstructorProperties("cidr")
protected Cidr(String cidr) {
this.cidr = checkNotNull(cidr);
}
@Override