From 506e99d7a02307aab42595c10c13a0b59d8d8c9f Mon Sep 17 00:00:00 2001 From: Tanish Azad Date: Wed, 22 Nov 2023 19:19:00 +0530 Subject: [PATCH] fixed error --- .../java/io/github/taz03/jia/requests/InstagramRequest.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/src/main/java/io/github/taz03/jia/requests/InstagramRequest.java b/lib/src/main/java/io/github/taz03/jia/requests/InstagramRequest.java index 85cb10a..93a84e7 100644 --- a/lib/src/main/java/io/github/taz03/jia/requests/InstagramRequest.java +++ b/lib/src/main/java/io/github/taz03/jia/requests/InstagramRequest.java @@ -73,10 +73,7 @@ public Class getResponseType() { * @return Parsed response class */ public T parseResponse(String json) throws JsonProcessingException { - T response = mapper.readValue(json, responseType); - response.setJson(json); - - return response; + return mapper.readValue(json, responseType); } protected Map getHeaders(InstagramClient client) {