summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeshu Kumar M <seshu.kumar.m@huawei.com>2017-10-30 07:22:39 +0000
committerGerrit Code Review <gerrit@onap.org>2017-10-30 07:22:39 +0000
commitf6fbb894cda0703d2e671051f584cbae27d4011f (patch)
tree39f1be56fcc60eebbd79e57e63f67ffbaa0206ce
parent1a2d66481809db6a69bcf8cb9da165f61b08e5da (diff)
parent9bd5455099b747c7e35b4d648ce733c91423f47e (diff)
Merge "Replace type specification with operator ("<>")"
-rw-r--r--quantum-model/src/main/java/com/woorea/openstack/quantum/model/SubnetForCreate.java1
-rw-r--r--quantum-model/src/main/java/com/woorea/openstack/quantum/model/Subnets.java2
-rw-r--r--swift-model/src/main/java/com/woorea/openstack/swift/model/ObjectForUpload.java2
3 files changed, 4 insertions, 1 deletions
diff --git a/quantum-model/src/main/java/com/woorea/openstack/quantum/model/SubnetForCreate.java b/quantum-model/src/main/java/com/woorea/openstack/quantum/model/SubnetForCreate.java
index d06ca7a..acecb73 100644
--- a/quantum-model/src/main/java/com/woorea/openstack/quantum/model/SubnetForCreate.java
+++ b/quantum-model/src/main/java/com/woorea/openstack/quantum/model/SubnetForCreate.java
@@ -21,6 +21,7 @@ import org.codehaus.jackson.map.annotate.JsonRootName;
/**
* Please use {@link Subnet} directly.
+ * @Deprecated
*/
@SuppressWarnings("serial")
@JsonRootName("subnet")
diff --git a/quantum-model/src/main/java/com/woorea/openstack/quantum/model/Subnets.java b/quantum-model/src/main/java/com/woorea/openstack/quantum/model/Subnets.java
index 33000ce..0796d99 100644
--- a/quantum-model/src/main/java/com/woorea/openstack/quantum/model/Subnets.java
+++ b/quantum-model/src/main/java/com/woorea/openstack/quantum/model/Subnets.java
@@ -41,10 +41,12 @@ public class Subnets implements Serializable, Iterable<Subnet> {
this.list = list;
}
+ @Override
public String toString() {
return "Subnets [list=" + list + "]";
}
+ @Override
public Iterator<Subnet> iterator() {
return list.iterator();
}
diff --git a/swift-model/src/main/java/com/woorea/openstack/swift/model/ObjectForUpload.java b/swift-model/src/main/java/com/woorea/openstack/swift/model/ObjectForUpload.java
index 10a9d23..5775f4b 100644
--- a/swift-model/src/main/java/com/woorea/openstack/swift/model/ObjectForUpload.java
+++ b/swift-model/src/main/java/com/woorea/openstack/swift/model/ObjectForUpload.java
@@ -64,7 +64,7 @@ public class ObjectForUpload {
*/
public Map<String, java.lang.Object> getProperties() {
if(properties == null) {
- properties = new HashMap<String, java.lang.Object>();
+ properties = new HashMap<>();
}
return properties;
}