Fixes missing nullable annotations

This commit is contained in:
Zack Shoylev 2014-08-12 14:13:22 -05:00
parent c627454926
commit 03c900fba6
8 changed files with 30 additions and 4 deletions

View File

@ -18,6 +18,7 @@ package org.jclouds.openstack.neutron.v2.domain;
import com.google.common.base.MoreObjects;
import com.google.common.base.Objects;
import org.jclouds.javax.annotation.Nullable;
import javax.inject.Named;
import java.beans.ConstructorProperties;
@ -58,6 +59,7 @@ public class AddressPair {
/**
* @return the macAddress of the AddressPair
*/
@Nullable
public String getMacAddress() {
return macAddress;
}
@ -65,6 +67,7 @@ public class AddressPair {
/**
* @return the ipAddress of the AddressPair
*/
@Nullable
public String getIpAddress() {
return ipAddress;
}

View File

@ -18,6 +18,7 @@ package org.jclouds.openstack.neutron.v2.domain;
import com.google.common.base.MoreObjects;
import com.google.common.base.Objects;
import org.jclouds.javax.annotation.Nullable;
import java.beans.ConstructorProperties;
@ -43,6 +44,7 @@ public class AllocationPool {
/**
* @return the start of the AllocationPool
*/
@Nullable
public String getStart() {
return start;
}
@ -50,6 +52,7 @@ public class AllocationPool {
/**
* @return the end of the AllocationPool
*/
@Nullable
public String getEnd() {
return end;
}

View File

@ -18,6 +18,7 @@ package org.jclouds.openstack.neutron.v2.domain;
import com.google.common.base.MoreObjects;
import com.google.common.base.Objects;
import org.jclouds.javax.annotation.Nullable;
import javax.inject.Named;
import java.beans.ConstructorProperties;
@ -41,6 +42,7 @@ public class ExternalGatewayInfo {
/**
* @return the networkId of the ExternalGatewayInfo
*/
@Nullable
public String getNetworkId() {
return networkId;
}
@ -48,6 +50,7 @@ public class ExternalGatewayInfo {
/**
* @return the enableSnat status of the ExternalGatewayInfo
*/
@Nullable
public Boolean getEnableSnat() {
return enableSnat;
}

View File

@ -18,6 +18,7 @@ package org.jclouds.openstack.neutron.v2.domain;
import com.google.common.base.MoreObjects;
import com.google.common.base.Objects;
import org.jclouds.javax.annotation.Nullable;
import javax.inject.Named;
import java.beans.ConstructorProperties;
@ -50,6 +51,7 @@ public class ExtraDhcpOption {
/**
* @return the id of the ExtraDhcpOption
*/
@Nullable
public String getId() {
return id;
}
@ -57,6 +59,7 @@ public class ExtraDhcpOption {
/**
* @return the optionName of the ExtraDhcpOption
*/
@Nullable
public String getOptionName() {
return optionName;
}
@ -64,6 +67,7 @@ public class ExtraDhcpOption {
/**
* @return the optionValue of the ExtraDhcpOption
*/
@Nullable
public String getOptionValue() {
return optionValue;
}

View File

@ -19,6 +19,7 @@ package org.jclouds.openstack.neutron.v2.domain;
import com.google.common.base.MoreObjects;
import com.google.common.base.MoreObjects.ToStringHelper;
import com.google.common.base.Objects;
import org.jclouds.javax.annotation.Nullable;
import javax.inject.Named;
import java.beans.ConstructorProperties;
@ -44,6 +45,7 @@ public class HostRoute {
/**
* @return the destination CIDR for this route.
*/
@Nullable
public String getDestinationCidr() {
return destinationCidr;
}
@ -51,6 +53,7 @@ public class HostRoute {
/**
* @return the IP of the next hop to forward traffic to.
*/
@Nullable
public String getNextHop() {
return nextHop;
}

View File

@ -18,6 +18,7 @@ package org.jclouds.openstack.neutron.v2.domain;
import com.google.common.base.MoreObjects;
import com.google.common.base.Objects;
import org.jclouds.javax.annotation.Nullable;
import javax.inject.Named;
import java.beans.ConstructorProperties;
@ -41,6 +42,7 @@ public class IP {
/**
* @return the ipAddress of the IP
*/
@Nullable
public String getIpAddress() {
return ipAddress;
}
@ -48,6 +50,7 @@ public class IP {
/**
* @return the subnetId of the IP
*/
@Nullable
public String getSubnetId() {
return subnetId;
}

View File

@ -18,6 +18,7 @@ package org.jclouds.openstack.neutron.v2.domain;
import com.google.common.base.MoreObjects;
import com.google.common.base.Objects;
import org.jclouds.javax.annotation.Nullable;
import javax.inject.Named;
import java.beans.ConstructorProperties;
@ -37,10 +38,10 @@ public class NetworkSegment {
@Named("provider:physical_network")
protected final String physicalNetwork;
@Named("provider:segmentation_id")
protected final int segmentationId;
protected final Integer segmentationId;
@ConstructorProperties({"provider:network_type", "provider:physical_network", "provider:segmentation_id"})
protected NetworkSegment(NetworkType networkType, String physicalNetwork, int segmentationId) {
protected NetworkSegment(NetworkType networkType, String physicalNetwork, Integer segmentationId) {
this.networkType = networkType;
this.physicalNetwork = physicalNetwork;
this.segmentationId = segmentationId;
@ -49,6 +50,7 @@ public class NetworkSegment {
/**
* @return the networkType of the NetworkSegment
*/
@Nullable
public NetworkType getNetworkType() {
return networkType;
}
@ -56,6 +58,7 @@ public class NetworkSegment {
/**
* @return the physicalNetwork of the NetworkSegment
*/
@Nullable
public String getPhysicalNetwork() {
return physicalNetwork;
}
@ -63,7 +66,8 @@ public class NetworkSegment {
/**
* @return the segmentationId of the NetworkSegment
*/
public int getSegmentationId() {
@Nullable
public Integer getSegmentationId() {
return segmentationId;
}
@ -111,7 +115,7 @@ public class NetworkSegment {
public static class Builder {
protected NetworkType networkType;
protected String physicalNetwork;
protected int segmentationId;
protected Integer segmentationId;
/**
* Provide the networkType to the NetworkSegment's Builder.

View File

@ -18,6 +18,7 @@ package org.jclouds.openstack.neutron.v2.domain;
import com.google.common.base.MoreObjects;
import com.google.common.base.Objects;
import org.jclouds.javax.annotation.Nullable;
import javax.inject.Named;
import java.beans.ConstructorProperties;
@ -45,6 +46,7 @@ public class RouterInterface {
/**
* @return the subnetId of the RouterInterface
*/
@Nullable
public String getSubnetId() {
return subnetId;
}
@ -52,6 +54,7 @@ public class RouterInterface {
/**
* @return the portId of the RouterInterface
*/
@Nullable
public String getPortId() {
return portId;
}