This is an automated email from the ASF dual-hosted git repository.
ilgrosso pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/syncope.git
The following commit(s) were added to refs/heads/master by this push:
new a2b395cdb4 [SYNCOPE-1985] Fix typo in AnyTypeKeyComparator causing
incorrect AnyType ordering (#1460)
a2b395cdb4 is described below
commit a2b395cdb46a3448a000c228e6c06c3efbab4c6f
Author: alberto bogi <[email protected]>
AuthorDate: Fri Jul 17 15:19:50 2026 +0200
[SYNCOPE-1985] Fix typo in AnyTypeKeyComparator causing incorrect AnyType
ordering (#1460)
---
.../java/org/apache/syncope/client/console/rest/AnyTypeRestClient.java | 2 +-
.../java/org/apache/syncope/client/enduser/rest/AnyTypeRestClient.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git
a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/rest/AnyTypeRestClient.java
b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/rest/AnyTypeRestClient.java
index ae38b0d7c2..364c49d39c 100644
---
a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/rest/AnyTypeRestClient.java
+++
b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/rest/AnyTypeRestClient.java
@@ -80,7 +80,7 @@ public class AnyTypeRestClient extends BaseRestClient {
if (AnyTypeKind.GROUP.name().equals(o1)) {
return -1;
}
- if (AnyTypeKind.GROUP.name().equals(2)) {
+ if (AnyTypeKind.GROUP.name().equals(o2)) {
return 1;
}
return ObjectUtils.compare(o1, o2);
diff --git
a/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/rest/AnyTypeRestClient.java
b/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/rest/AnyTypeRestClient.java
index 17843a9ac3..eff1733387 100644
---
a/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/rest/AnyTypeRestClient.java
+++
b/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/rest/AnyTypeRestClient.java
@@ -80,7 +80,7 @@ public class AnyTypeRestClient extends BaseRestClient {
if (AnyTypeKind.GROUP.name().equals(o1)) {
return -1;
}
- if (AnyTypeKind.GROUP.name().equals(2)) {
+ if (AnyTypeKind.GROUP.name().equals(o2)) {
return 1;
}
return ObjectUtils.compare(o1, o2);