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

albumenj 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 93bdc29  Fix Filter Disappear when theirs simple name is equals (#7802)
93bdc29 is described below

commit 93bdc294a243cfe2167d8a2e6cbe65c90388b6ba
Author: Albumen Kevin <[email protected]>
AuthorDate: Wed May 19 19:00:48 2021 +0800

    Fix Filter Disappear when theirs simple name is equals (#7802)
---
 .../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 3d6f80e..d5b9785 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
@@ -84,7 +84,7 @@ public class ActivateComparator implements Comparator<Class> {
         if (a1.order > a2.order) {
             return 1;
         } else if (a1.order == a2.order) {
-            return o1.getSimpleName().compareTo(o2.getSimpleName());
+            return o1.getSimpleName().compareTo(o2.getSimpleName()) > 0 ? 1 : 
-1;
         } else {
             return -1;
         }

Reply via email to