summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeshu Kumar M <seshu.kumar.m@huawei.com>2017-10-23 04:16:07 +0000
committerGerrit Code Review <gerrit@onap.org>2017-10-23 04:16:07 +0000
commitedb59b53da288feef26a1f6f897251c2160277df (patch)
treebf7403b01393fe1fa22754b32a56b1f5ef2eae63
parenteded15a9b569a9f3ae002328a3d067500959af49 (diff)
parent711bd31aa99ea5196c73261d532aac2c6a24b89e (diff)
Merge "Replace type specification with operator ("<>")"
-rw-r--r--quantum-client/src/main/java/com/woorea/openstack/quantum/api/query/AbsOpenStackCmd.java2
-rw-r--r--quantum-model/src/main/java/com/woorea/openstack/quantum/model/Network.java2
-rw-r--r--quantum-model/src/main/java/com/woorea/openstack/quantum/model/NetworkForCreate.java3
-rw-r--r--quantum-model/src/main/java/com/woorea/openstack/quantum/model/Networks.java4
-rw-r--r--quantum-model/src/main/java/com/woorea/openstack/quantum/model/Routers.java4
5 files changed, 9 insertions, 6 deletions
diff --git a/quantum-client/src/main/java/com/woorea/openstack/quantum/api/query/AbsOpenStackCmd.java b/quantum-client/src/main/java/com/woorea/openstack/quantum/api/query/AbsOpenStackCmd.java
index 90f5bb5..2511b0c 100644
--- a/quantum-client/src/main/java/com/woorea/openstack/quantum/api/query/AbsOpenStackCmd.java
+++ b/quantum-client/src/main/java/com/woorea/openstack/quantum/api/query/AbsOpenStackCmd.java
@@ -62,7 +62,7 @@ public class AbsOpenStackCmd<T> extends OpenStackRequest<T> {
private Map<String, String> getObjectParamMap(T target)
{
- Map<String, String> resultMap = new HashMap<String, String>();
+ Map<String, String> resultMap = new HashMap<>();
if (target == null)
return resultMap;
diff --git a/quantum-model/src/main/java/com/woorea/openstack/quantum/model/Network.java b/quantum-model/src/main/java/com/woorea/openstack/quantum/model/Network.java
index 29870a3..6c21b00 100644
--- a/quantum-model/src/main/java/com/woorea/openstack/quantum/model/Network.java
+++ b/quantum-model/src/main/java/com/woorea/openstack/quantum/model/Network.java
@@ -319,7 +319,7 @@ public class Network implements Serializable {
*/
@Override
public String toString() {
- StringBuffer buf = new StringBuffer("Network [id=" + id + ", name=" + name + ", subnets="
+ StringBuilder buf = new StringBuilder("Network [id=" + id + ", name=" + name + ", subnets="
+ subnets + ", status=" + status + ", admin_state_up=" + adminStateUp + ", tenant_id=" +
tenantId + ", shared=" + shared + ", router:external=" + routerExternal);
if (getNetworkType() == NetworkType.PROVIDER)
diff --git a/quantum-model/src/main/java/com/woorea/openstack/quantum/model/NetworkForCreate.java b/quantum-model/src/main/java/com/woorea/openstack/quantum/model/NetworkForCreate.java
index 1a2bb67..d5f3393 100644
--- a/quantum-model/src/main/java/com/woorea/openstack/quantum/model/NetworkForCreate.java
+++ b/quantum-model/src/main/java/com/woorea/openstack/quantum/model/NetworkForCreate.java
@@ -18,6 +18,9 @@ package com.woorea.openstack.quantum.model;
import org.codehaus.jackson.map.annotate.JsonRootName;
+/**
+ * @deprecated
+ */
@SuppressWarnings("serial")
@JsonRootName("network")
@Deprecated
diff --git a/quantum-model/src/main/java/com/woorea/openstack/quantum/model/Networks.java b/quantum-model/src/main/java/com/woorea/openstack/quantum/model/Networks.java
index 88e72e6..84e45ca 100644
--- a/quantum-model/src/main/java/com/woorea/openstack/quantum/model/Networks.java
+++ b/quantum-model/src/main/java/com/woorea/openstack/quantum/model/Networks.java
@@ -41,12 +41,12 @@ public class Networks implements Iterable<Network>, Serializable{
this.list = list;
}
-
+ @Override
public String toString() {
return "Networks [list=" + list + "]";
}
-
+ @Override
public Iterator<Network> iterator() {
return list.iterator();
}
diff --git a/quantum-model/src/main/java/com/woorea/openstack/quantum/model/Routers.java b/quantum-model/src/main/java/com/woorea/openstack/quantum/model/Routers.java
index a2dbd8e..038bdb4 100644
--- a/quantum-model/src/main/java/com/woorea/openstack/quantum/model/Routers.java
+++ b/quantum-model/src/main/java/com/woorea/openstack/quantum/model/Routers.java
@@ -41,12 +41,12 @@ public class Routers implements Iterable<Router>, Serializable{
this.list = list;
}
-
+ @Override
public String toString() {
return "Routers [list=" + list + "]";
}
-
+ @Override
public Iterator<Router> iterator() {
return list.iterator();
}