cnzakii opened a new issue, #15326:
URL: https://github.com/apache/dubbo/issues/15326

   ### Pre-check
   
   - [x] I am sure that all the content I provide is in English.
   
   
   ### Search before asking
   
   - [x] I had searched in the 
[issues](https://github.com/apache/dubbo/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Apache Dubbo Component
   
   Java SDK (apache/dubbo)
   
   ### Dubbo Version
   
   dubbo: 3.3+
   
   ### Steps to reproduce this issue
   
   There’s a redundant check in the `URLParam.getRawParam()` method: it tests 
whether `rawParam` is empty and, if so, calls `URLParam.toString()`, but 
`toString()` itself also checks whether `rawParam` is empty. 
   
   
![Image](https://github.com/user-attachments/assets/efecc67f-f09b-48e6-ad9d-73ee3fd04918)
   ---
   
![Image](https://github.com/user-attachments/assets/c7e8316e-0424-4223-886c-3b2544b28247)
   
   ### What you expected to happen
   
   We should therefore remove the check from `getRawParam()` and simply call 
`toString()`.
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a pull request to fix on your own?
   
   - [x] Yes I am willing to submit a pull request on my own!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to