From 227db9d54e9fc6468d2a28bb8b73202aceb40a26 Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Tue, 12 Feb 2019 17:05:48 +0000 Subject: [PATCH] Improved code git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry-context-client@177087 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../context/ResourceRegistryContextClientImpl.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/gcube/informationsystem/resourceregistry/context/ResourceRegistryContextClientImpl.java b/src/main/java/org/gcube/informationsystem/resourceregistry/context/ResourceRegistryContextClientImpl.java index d585245..3827c50 100644 --- a/src/main/java/org/gcube/informationsystem/resourceregistry/context/ResourceRegistryContextClientImpl.java +++ b/src/main/java/org/gcube/informationsystem/resourceregistry/context/ResourceRegistryContextClientImpl.java @@ -217,7 +217,9 @@ public class ResourceRegistryContextClientImpl implements ResourceRegistryContex gxHTTPStringRequest.path(uuid); HttpURLConnection httpURLConnection = gxHTTPStringRequest.delete(); - boolean deleted = HTTPUtility.getResponse(Boolean.class, httpURLConnection); + HTTPUtility.getResponse(String.class, httpURLConnection); + + boolean deleted = true; logger.info("{} with UUID {} {}", Context.NAME, uuid, deleted ? " successfully deleted" : "was NOT deleted");