From 1d32af642734ff677dbba20c26c6ff6ca4ba6984 Mon Sep 17 00:00:00 2001 From: Adam Lowe Date: Tue, 3 Jul 2012 12:35:53 +0100 Subject: [PATCH] openstack: fixing SecurityGroup.cidr deserialization --- .../openstack/nova/v2_0/domain/SecurityGroupRule.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apis/openstack-nova/src/main/java/org/jclouds/openstack/nova/v2_0/domain/SecurityGroupRule.java b/apis/openstack-nova/src/main/java/org/jclouds/openstack/nova/v2_0/domain/SecurityGroupRule.java index b90ecc8ecd..60475427ec 100644 --- a/apis/openstack-nova/src/main/java/org/jclouds/openstack/nova/v2_0/domain/SecurityGroupRule.java +++ b/apis/openstack-nova/src/main/java/org/jclouds/openstack/nova/v2_0/domain/SecurityGroupRule.java @@ -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