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

ilgrosso pushed a commit to branch 3_0_X
in repository https://gitbox.apache.org/repos/asf/syncope.git


The following commit(s) were added to refs/heads/3_0_X by this push:
     new a3052229b3 [SYNCOPE-1896] Re-using existing method
a3052229b3 is described below

commit a3052229b353cb9127591b56d5b6243f7103524a
Author: Francesco Chicchiriccò <[email protected]>
AuthorDate: Wed Jul 23 12:01:46 2025 +0200

    [SYNCOPE-1896] Re-using existing method
---
 .../provisioning/java/pushpull/AbstractPushResultHandler.java     | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git 
a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/pushpull/AbstractPushResultHandler.java
 
b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/pushpull/AbstractPushResultHandler.java
index b0636ddb8f..02d5043d0b 100644
--- 
a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/pushpull/AbstractPushResultHandler.java
+++ 
b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/pushpull/AbstractPushResultHandler.java
@@ -42,8 +42,6 @@ import org.apache.syncope.common.lib.types.ResourceOperation;
 import org.apache.syncope.common.lib.types.UnmatchingRule;
 import org.apache.syncope.core.persistence.api.entity.Any;
 import org.apache.syncope.core.persistence.api.entity.ExternalResource;
-import org.apache.syncope.core.persistence.api.entity.anyobject.AnyObject;
-import org.apache.syncope.core.persistence.api.entity.group.Group;
 import org.apache.syncope.core.persistence.api.entity.task.PushTask;
 import org.apache.syncope.core.persistence.api.entity.user.User;
 import org.apache.syncope.core.provisioning.api.AuditManager;
@@ -498,11 +496,7 @@ public abstract class AbstractPushResultHandler extends 
AbstractSyncopeResultHan
                             resultStatus,
                             beforeObj == null ? null : 
POJOHelper.serialize(beforeObj),
                             output == null ? null : output instanceof 
Exception ? output : POJOHelper.serialize(output),
-                            any instanceof User
-                                    ? userDataBinder.getUserTO((User) any, 
true)
-                                    : any instanceof Group
-                                            ? 
groupDataBinder.getGroupTO((Group) any, true)
-                                            : 
anyObjectDataBinder.getAnyObjectTO((AnyObject) any, true)));
+                            getAnyTO(any)));
                     AfterHandlingJob.schedule(scheduler, jobMap);
                 }
             }

Reply via email to