summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeshu Kumar M <seshu.kumar.m@huawei.com>2019-04-17 14:44:05 +0000
committerGerrit Code Review <gerrit@onap.org>2019-04-17 14:44:05 +0000
commit1d4c6368fa6a17121f01a8eea90fb616cfaa7c11 (patch)
treea0db87b06f11d22d8cd86c6c8e29771233f7a368
parent77c0aa09fa2742d59b51c774037cb9399c760545 (diff)
parent96aa2438edf506bb0cecff9a542007241326c4ad (diff)
Merge "Remove unused import, variable change"
-rw-r--r--ceilometer-client/src/main/java/com/woorea/openstack/ceilometer/Ceilometer.java12
-rw-r--r--openstack-client/src/main/java/com/woorea/openstack/base/client/Entity.java12
-rw-r--r--quantum-model/src/main/java/com/woorea/openstack/quantum/model/GatewayInfo.java2
3 files changed, 12 insertions, 14 deletions
diff --git a/ceilometer-client/src/main/java/com/woorea/openstack/ceilometer/Ceilometer.java b/ceilometer-client/src/main/java/com/woorea/openstack/ceilometer/Ceilometer.java
index aa089df..6c18858 100644
--- a/ceilometer-client/src/main/java/com/woorea/openstack/ceilometer/Ceilometer.java
+++ b/ceilometer-client/src/main/java/com/woorea/openstack/ceilometer/Ceilometer.java
@@ -24,14 +24,14 @@ import com.woorea.openstack.ceilometer.v2.api.ResourcesResource;
public class Ceilometer extends OpenStackClient {
- private final MetersResource METERS;
+ private final MetersResource meters;
- private final ResourcesResource RESOURCES;
+ private final ResourcesResource resources;
public Ceilometer(String endpoint, OpenStackClientConnector connector) {
super(endpoint, connector);
- METERS = new MetersResource(this);
- RESOURCES = new ResourcesResource(this);
+ meters = new MetersResource(this);
+ resources = new ResourcesResource(this);
}
public Ceilometer(String endpoint) {
@@ -40,11 +40,11 @@ public class Ceilometer extends OpenStackClient {
}
public ResourcesResource resources() {
- return RESOURCES;
+ return resources;
}
public MetersResource meters() {
- return METERS;
+ return meters;
}
}
diff --git a/openstack-client/src/main/java/com/woorea/openstack/base/client/Entity.java b/openstack-client/src/main/java/com/woorea/openstack/base/client/Entity.java
index c68a308..1e2dfcc 100644
--- a/openstack-client/src/main/java/com/woorea/openstack/base/client/Entity.java
+++ b/openstack-client/src/main/java/com/woorea/openstack/base/client/Entity.java
@@ -24,6 +24,12 @@ public class Entity<T> {
private String contentType;
+ public Entity(T entity, String contentType) {
+ super();
+ this.entity = entity;
+ this.contentType = contentType;
+ }
+
public static <T> Entity<T> json(T entity) {
return new Entity<>(entity, "application/json");
}
@@ -32,12 +38,6 @@ public class Entity<T> {
return new Entity<>(entity, "application/octet-stream");
}
- public Entity(T entity, String contentType) {
- super();
- this.entity = entity;
- this.contentType = contentType;
- }
-
/**
* @return the entity
*/
diff --git a/quantum-model/src/main/java/com/woorea/openstack/quantum/model/GatewayInfo.java b/quantum-model/src/main/java/com/woorea/openstack/quantum/model/GatewayInfo.java
index 9ef68ff..88fb6a4 100644
--- a/quantum-model/src/main/java/com/woorea/openstack/quantum/model/GatewayInfo.java
+++ b/quantum-model/src/main/java/com/woorea/openstack/quantum/model/GatewayInfo.java
@@ -16,8 +16,6 @@
package com.woorea.openstack.quantum.model;
-import java.util.List;
-
import com.fasterxml.jackson.annotation.JsonProperty;
import java.io.Serializable;