syncope-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ilgro...@apache.org
Subject [2/2] syncope git commit: Minor cleanup
Date Wed, 18 Oct 2017 09:39:50 GMT
Minor cleanup


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/01dba343
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/01dba343
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/01dba343

Branch: refs/heads/master
Commit: 01dba343087df9b0f8f4b8c66f636b9ea9aa6f18
Parents: b59af72
Author: Francesco Chicchiriccò <ilgrosso@apache.org>
Authored: Wed Oct 18 11:37:07 2017 +0200
Committer: Francesco Chicchiriccò <ilgrosso@apache.org>
Committed: Wed Oct 18 11:39:38 2017 +0200

----------------------------------------------------------------------
 .../java/propagation/AbstractPropagationTaskExecutor.java        | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/syncope/blob/01dba343/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/propagation/AbstractPropagationTaskExecutor.java
----------------------------------------------------------------------
diff --git a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/propagation/AbstractPropagationTaskExecutor.java
b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/propagation/AbstractPropagationTaskExecutor.java
index e4f443f..fa5442a 100644
--- a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/propagation/AbstractPropagationTaskExecutor.java
+++ b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/propagation/AbstractPropagationTaskExecutor.java
@@ -209,7 +209,7 @@ public abstract class AbstractPropagationTaskExecutor implements PropagationTask
                     new ObjectClass(task.getObjectClassName()), attributes, null, propagationAttempted);
         } else {
             // 1. check if rename is really required
-            Name newName = (Name) AttributeUtil.find(Name.NAME, attributes);
+            Name newName = AttributeUtil.getNameFromAttributes(attributes);
 
             LOG.debug("Rename required with value {}", newName);
 
@@ -238,7 +238,7 @@ public abstract class AbstractPropagationTaskExecutor implements PropagationTask
 
             if (originalAttrs.equals(attributes)) {
                 LOG.debug("Don't need to propagate anything: {} is equal to {}", originalAttrs,
attributes);
-                result = (Uid) AttributeUtil.find(Uid.NAME, attributes);
+                result = AttributeUtil.getUidAttribute(attributes);
             } else {
                 LOG.debug("Attributes that would be updated {}", attributes);
 


Mime
View raw message