From f82368990f3cd141bae30ee9fdcedcf8c3d0f4d5 Mon Sep 17 00:00:00 2001 From: nishadi Date: Tue, 27 Feb 2018 17:23:49 +0530 Subject: [PATCH] Changed CommentManagementAPIImpl --- .../mgt/store/api/services/impl/CommentManagementAPIImpl.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.api/src/main/java/org/wso2/carbon/device/application/mgt/store/api/services/impl/CommentManagementAPIImpl.java b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.api/src/main/java/org/wso2/carbon/device/application/mgt/store/api/services/impl/CommentManagementAPIImpl.java index 7c37816219..e35919ffd6 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.api/src/main/java/org/wso2/carbon/device/application/mgt/store/api/services/impl/CommentManagementAPIImpl.java +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.api/src/main/java/org/wso2/carbon/device/application/mgt/store/api/services/impl/CommentManagementAPIImpl.java @@ -37,7 +37,6 @@ import javax.ws.rs.PUT; import javax.ws.rs.GET; import javax.ws.rs.POST; import javax.ws.rs.DELETE; -import javax.ws.rs.NotFoundException; import javax.ws.rs.core.Response; import java.util.ArrayList; import java.util.List; @@ -208,7 +207,6 @@ public class CommentManagementAPIImpl implements CommentManagementAPI { int newStars; try { newStars = commentsManager.updateStars(stars, uuid); - if (stars != 0) { return Response.status(Response.Status.CREATED).entity(newStars).build(); } else {