This is an automated email from the ASF dual-hosted git repository.
hyunkun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo.git
The following commit(s) were added to refs/heads/master by this push:
new 5eec017 Fix length of array is never negative (#4510)
5eec017 is described below
commit 5eec017be7b418a11c714ca945b891067b5cdaeb
Author: Taosheng Wei <[email protected]>
AuthorDate: Thu Jul 11 11:16:45 2019 +0800
Fix length of array is never negative (#4510)
---
.../org/apache/dubbo/common/extension/support/ActivateComparator.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/dubbo-common/src/main/java/org/apache/dubbo/common/extension/support/ActivateComparator.java
b/dubbo-common/src/main/java/org/apache/dubbo/common/extension/support/ActivateComparator.java
index 5dcedc3..1114804 100644
---
a/dubbo-common/src/main/java/org/apache/dubbo/common/extension/support/ActivateComparator.java
+++
b/dubbo-common/src/main/java/org/apache/dubbo/common/extension/support/ActivateComparator.java
@@ -82,7 +82,7 @@ public class ActivateComparator implements Comparator<Object>
{
}
private Class<?> findSpi(Class clazz) {
- if (clazz.getInterfaces().length <= 0) {
+ if (clazz.getInterfaces().length == 0) {
return null;
}