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
This commit is contained in:
Luca Frosini 2019-02-12 17:05:48 +00:00
parent 61bdc05384
commit 227db9d54e
1 changed files with 3 additions and 1 deletions

View File

@ -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");