You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by GitBox <gi...@apache.org> on 2022/07/27 00:50:42 UTC

[GitHub] [inlong] ciscozhou commented on a diff in pull request #5225: [INLONG-5014][Improve] Fix the code scanning alerts exposed by CodeQL

ciscozhou commented on code in PR #5225:
URL: https://github.com/apache/inlong/pull/5225#discussion_r930525233


##########
inlong-dataproxy/dataproxy-source/src/main/java/org/apache/inlong/dataproxy/http/MessageFilter.java:
##########
@@ -90,8 +90,7 @@ public void doFilter(ServletRequest request, ServletResponse response, FilterCha
             } else if (body.length() > maxMsgLength) {
                 LOG.warn("Received bad request from client. Body length is " + body.length());
                 code = StatusCode.EXCEED_LEN;
-                message = "Bad request from client. " + "Body length is " + body.length()
-                        + ",exceeding the limit:" + maxMsgLength;
+                message = "Bad request from client. " + "Body length is exceeding the limit:" + maxMsgLength;

Review Comment:
   Not need use `+` to append the two strings.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@inlong.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org