mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
CommentManagementAPIImpl
variable redundant reduced.
This commit is contained in:
parent
c3f8d15910
commit
c26903c446
@ -21,8 +21,6 @@ package org.wso2.carbon.device.application.mgt.store.api.services.impl;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.wso2.carbon.context.CarbonContext;
|
||||
import org.wso2.carbon.context.PrivilegedCarbonContext;
|
||||
import org.wso2.carbon.device.application.mgt.store.api.APIUtil;
|
||||
import org.wso2.carbon.device.application.mgt.store.api.services.CommentManagementAPI;
|
||||
import org.wso2.carbon.device.application.mgt.common.Comment;
|
||||
@ -164,7 +162,7 @@ public class CommentManagementAPIImpl implements CommentManagementAPI {
|
||||
@PathParam("uuid") String uuid) {
|
||||
|
||||
CommentsManager commentsManager = APIUtil.getCommentsManager();
|
||||
int Stars = 0;
|
||||
int Stars;
|
||||
try {
|
||||
Stars = commentsManager.getStars(uuid);
|
||||
} catch (CommentManagementException e) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user