You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by al...@apache.org on 2023/11/20 02:51:31 UTC

(dubbo) branch 3.2 updated: Update ReflectUtils.java (#13382)

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

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


The following commit(s) were added to refs/heads/3.2 by this push:
     new a1642ac07a Update ReflectUtils.java (#13382)
a1642ac07a is described below

commit a1642ac07a838e31bab952d972be62c007a95a34
Author: why技术 <th...@outlook.com>
AuthorDate: Mon Nov 20 10:51:25 2023 +0800

    Update ReflectUtils.java (#13382)
    
    Remove useless code
---
 .../src/main/java/org/apache/dubbo/common/utils/ReflectUtils.java     | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/dubbo-common/src/main/java/org/apache/dubbo/common/utils/ReflectUtils.java b/dubbo-common/src/main/java/org/apache/dubbo/common/utils/ReflectUtils.java
index aa0a04f75d..4fcea01ec9 100644
--- a/dubbo-common/src/main/java/org/apache/dubbo/common/utils/ReflectUtils.java
+++ b/dubbo-common/src/main/java/org/apache/dubbo/common/utils/ReflectUtils.java
@@ -899,10 +899,6 @@ public final class ReflectUtils {
     @Deprecated
     public static Method findMethodByMethodSignature(Class<?> clazz, String methodName, String[] parameterTypes)
             throws NoSuchMethodException, ClassNotFoundException {
-        String signature = clazz.getName() + "." + methodName;
-        if (parameterTypes != null && parameterTypes.length > 0) {
-            signature += StringUtils.join(parameterTypes);
-        }
         Method method;
         if (parameterTypes == null) {
             List<Method> finded = new ArrayList<>();