处理部分 SonarQube 问题

This commit is contained in:
juntao
2022-01-07 11:58:20 +08:00
parent f45f29aa43
commit dab2d40ba4
7 changed files with 17 additions and 34 deletions

View File

@ -73,7 +73,7 @@ public class PostCommentUtils {
});
}
public static void addAnswerComment(final Context context, final String answerId, final String articleId,
public static void addAnswerComment(final String answerId, final String articleId,
final String articleCommunityId, final String content,
final CommentEntity commentEntity,
final PostCommentListener listener) {
@ -151,7 +151,7 @@ public class PostCommentUtils {
});
}
public static void addCommentVote(final Context context, final String commentId,
public static void addCommentVote(final String commentId,
final PostCommentListener listener) {
RetrofitManager.getInstance().getApi()
.postCommentVote(commentId)
@ -174,7 +174,7 @@ public class PostCommentUtils {
});
}
public static void addReportData(final Context context, final String commentId, final String reportData,
public static void addReportData(final String commentId, final String reportData,
final PostCommentListener listener) {
RequestBody body = RequestBody.create(MediaType.parse("application/json"), reportData);
RetrofitManager.getInstance().getApi()