Skip to content

Commit

Permalink
Merge pull request #2164 from zhaoyansheng163/master
Browse files Browse the repository at this point in the history
[ISSUE #2163]  This method needlessly uses a String literal as a Charset encoding [SendSyncMessageProcessor]
  • Loading branch information
MajorHe1 committed Nov 11, 2022
2 parents b821466 + 136a1fb commit 5ad61b9
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -281,7 +281,7 @@ public void onSuccess(CloudEvent event) {
String.valueOf(System.currentTimeMillis()))
.build();
final String rtnMsg = new String(Objects.requireNonNull(event.getData()).toBytes(),
EventMeshConstants.DEFAULT_CHARSET);
StandardCharsets.UTF_8);

HttpCommand succ = asyncContext.getRequest().createHttpCommandResponse(
sendMessageResponseHeader,
Expand Down

0 comments on commit 5ad61b9

Please sign in to comment.