diff options
-rw-r--r-- | openstack-client/src/main/java/com/woorea/openstack/base/client/Entity.java | 14 | ||||
-rw-r--r-- | openstack-client/src/main/java/com/woorea/openstack/base/client/OpenStackResponseException.java | 2 |
2 files changed, 8 insertions, 8 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 25bb014..c68a308 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 @@ -19,17 +19,17 @@ package com.woorea.openstack.base.client; public class Entity<T> { - + private T entity; - + private String contentType; - + public static <T> Entity<T> json(T entity) { - return new Entity<T>(entity, "application/json"); + return new Entity<>(entity, "application/json"); } - + public static <T> Entity<T> stream(T entity) { - return new Entity<T>(entity, "application/octet-stream"); + return new Entity<>(entity, "application/octet-stream"); } public Entity(T entity, String contentType) { @@ -65,5 +65,5 @@ public class Entity<T> { public void setContentType(String contentType) { this.contentType = contentType; } - + } diff --git a/openstack-client/src/main/java/com/woorea/openstack/base/client/OpenStackResponseException.java b/openstack-client/src/main/java/com/woorea/openstack/base/client/OpenStackResponseException.java index 1fcd7a5..e8b1e87 100644 --- a/openstack-client/src/main/java/com/woorea/openstack/base/client/OpenStackResponseException.java +++ b/openstack-client/src/main/java/com/woorea/openstack/base/client/OpenStackResponseException.java @@ -29,7 +29,7 @@ public class OpenStackResponseException extends OpenStackBaseException { protected final int status; // Make the response available for exception handling (includes body) - protected final OpenStackResponse response; + protected final transient OpenStackResponse response; public OpenStackResponseException(String message, int status) { this.message = message; |