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

huxing pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-dubbo.git


The following commit(s) were added to refs/heads/master by this push:
     new d7047d1  Remove unnecessary null check.
d7047d1 is described below

commit d7047d1e3e47e2a8b8b25e9b53f543857ec6d205
Author: Huxing Zhang <[email protected]>
AuthorDate: Sat May 12 20:49:49 2018 +0800

    Remove unnecessary null check.
---
 .../main/java/com/alibaba/dubbo/common/extension/ExtensionLoader.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/dubbo-common/src/main/java/com/alibaba/dubbo/common/extension/ExtensionLoader.java
 
b/dubbo-common/src/main/java/com/alibaba/dubbo/common/extension/ExtensionLoader.java
index 9be012d..7509a3d 100644
--- 
a/dubbo-common/src/main/java/com/alibaba/dubbo/common/extension/ExtensionLoader.java
+++ 
b/dubbo-common/src/main/java/com/alibaba/dubbo/common/extension/ExtensionLoader.java
@@ -664,7 +664,7 @@ public class ExtensionLoader<T> {
             clazz.getConstructor();
             if (name == null || name.length() == 0) {
                 name = findAnnotationName(clazz);
-                if (name == null || name.length() == 0) {
+                if (name.length() == 0) {
                     throw new IllegalStateException("No such extension name 
for the class " + clazz.getName() + " in the config " + resourceURL);
                 }
             }

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to