syncope-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ilgro...@apache.org
Subject [2/4] syncope git commit: Whitenoise
Date Tue, 17 Oct 2017 13:58:16 GMT
Whitenoise


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

Branch: refs/heads/2_0_X
Commit: 482a881ff6cf136fccf72aa1b877ab0a9cfd490e
Parents: 6fbd41a
Author: Francesco Chicchiriccò <ilgrosso@apache.org>
Authored: Tue Oct 17 15:55:52 2017 +0200
Committer: Francesco Chicchiriccò <ilgrosso@apache.org>
Committed: Tue Oct 17 15:55:52 2017 +0200

----------------------------------------------------------------------
 .../core/provisioning/java/data/TaskDataBinderImpl.java      | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/syncope/blob/482a881f/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/TaskDataBinderImpl.java
----------------------------------------------------------------------
diff --git a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/TaskDataBinderImpl.java
b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/TaskDataBinderImpl.java
index a22db75..c2e655d 100644
--- a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/TaskDataBinderImpl.java
+++ b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/TaskDataBinderImpl.java
@@ -126,14 +126,14 @@ public class TaskDataBinderImpl implements TaskDataBinder {
                     ? UnmatchingRule.ASSIGN : pushTaskTO.getUnmatchingRule());
 
             for (Map.Entry<String, String> entry : pushTaskTO.getFilters().entrySet())
{
-                AnyType type = anyTypeDAO.find(entry.getKey());
-                if (type == null) {
+                AnyType anyType = anyTypeDAO.find(entry.getKey());
+                if (anyType == null) {
                     LOG.debug("Invalid AnyType {} specified, ignoring...", entry.getKey());
                 } else {
-                    PushTaskAnyFilter filter = pushTask.getFilter(type);
+                    PushTaskAnyFilter filter = pushTask.getFilter(anyType);
                     if (filter == null) {
                         filter = entityFactory.newEntity(PushTaskAnyFilter.class);
-                        filter.setAnyType(anyTypeDAO.find(entry.getKey()));
+                        filter.setAnyType(anyType);
                         filter.setPushTask(pushTask);
                         pushTask.add(filter);
                     }


Mime
View raw message