summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeshu Kumar M <seshu.kumar.m@huawei.com>2019-04-17 12:09:43 +0000
committerGerrit Code Review <gerrit@onap.org>2019-04-17 12:09:43 +0000
commit87a5aa100306535a4694a689c5b73348f1c9bb57 (patch)
treed15c9e81e6e1c96f263919896c1a63d520b77167
parente8e3627f001e1c82f961a7f2fc491855cb2d621f (diff)
parent76b5a4c039f8b718d9517b99aacb39fb62bab618 (diff)
Merge "Replace the type specification in this constructor call with the diamond operator"
-rw-r--r--openstack-client/src/main/java/com/woorea/openstack/base/client/Entity.java14
-rw-r--r--openstack-client/src/main/java/com/woorea/openstack/base/client/OpenStackResponseException.java2
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;