diff options
author | Sindhuri.A <arcot.sindhuri@huawei.com> | 2019-04-17 18:17:31 +0530 |
---|---|---|
committer | Sindhuri.A <arcot.sindhuri@huawei.com> | 2019-04-17 18:17:31 +0530 |
commit | 96aa2438edf506bb0cecff9a542007241326c4ad (patch) | |
tree | e392c9754fee9b83554b5180613866c4fb45d12f /openstack-client | |
parent | 9cf72ced6cba4ba7326ceaf34887c212a301b0df (diff) |
Remove unused import, variable change
Removed unused import, constructor placing and attribute name change
Issue-ID: SO-1490
Change-Id: I8b4d940d8edc4b462ad5db9c7837f02d5a2ce991
Signed-off-by: Sindhuri.A <arcot.sindhuri@huawei.com>
Diffstat (limited to 'openstack-client')
-rw-r--r-- | openstack-client/src/main/java/com/woorea/openstack/base/client/Entity.java | 12 |
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 */ |