This is an automated email from the ASF dual-hosted git repository.

albumenj pushed a commit to branch 3.3
in repository https://gitbox.apache.org/repos/asf/dubbo.git


The following commit(s) were added to refs/heads/3.3 by this push:
     new e2987318b2 perf: Remove duplicate checks (#15327)
e2987318b2 is described below

commit e2987318b2a22fbd7d9976b7e47a5bc2c31ebac2
Author: Zaki <[email protected]>
AuthorDate: Sun Apr 20 20:16:10 2025 +0800

    perf: Remove duplicate checks (#15327)
---
 .../java/org/apache/dubbo/common/url/component/URLParam.java     | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git 
a/dubbo-common/src/main/java/org/apache/dubbo/common/url/component/URLParam.java
 
b/dubbo-common/src/main/java/org/apache/dubbo/common/url/component/URLParam.java
index e097ef4e40..fd6c97caea 100644
--- 
a/dubbo-common/src/main/java/org/apache/dubbo/common/url/component/URLParam.java
+++ 
b/dubbo-common/src/main/java/org/apache/dubbo/common/url/component/URLParam.java
@@ -837,12 +837,9 @@ public class URLParam {
      * @return raw string like parameters
      */
     public String getRawParam() {
-        if (StringUtils.isNotEmpty(rawParam)) {
-            return rawParam;
-        } else {
-            // empty if parameters have been modified or init by Map
-            return toString();
-        }
+        // If rawParam is not null, return it directly
+        // If rawParam is null, it means that the parameters have been modified
+        return toString();
     }
 
     protected Map<String, Map<String, String>> getMethodParameters() {

Reply via email to