xiaoyifang commented on code in PR #9440:
URL: https://github.com/apache/rocketmq/pull/9440#discussion_r2125768780


##########
common/src/main/java/org/apache/rocketmq/common/MixAll.java:
##########
@@ -557,4 +557,13 @@ public static boolean topicAllowsLMQ(String topic) {
             && !topic.startsWith(TopicValidator.SYSTEM_TOPIC_PREFIX)
             && !topic.equals(TopicValidator.RMQ_SYS_SCHEDULE_TOPIC);
     }
+
+    public static String adjustConfigForPlatform(String config) {
+        if (StringUtils.isNotBlank(config)) {
+            if (isWindows()) {
+                config = config.replace("\\", "\\\\");

Review Comment:
   IMO ,use StringUtils.replace instead.(you have already use `.isNotBlank`)
   
   java's String.replace use regex as parameter ,not  concise as 
StringUtils.replace.
   
   



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to