summaryrefslogtreecommitdiffstats
path: root/openstack-client
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 /openstack-client
parent77c0aa09fa2742d59b51c774037cb9399c760545 (diff)
parent96aa2438edf506bb0cecff9a542007241326c4ad (diff)
Merge "Remove unused import, variable change"
Diffstat (limited to 'openstack-client')
-rw-r--r--openstack-client/src/main/java/com/woorea/openstack/base/client/Entity.java12
1 files changed, 6 insertions, 6 deletions
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
*/