You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by il...@apache.org on 2015/02/16 14:58:22 UTC

[2/6] syncope git commit: [SYNCOPE-643] #resolve

[SYNCOPE-643] #resolve


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

Branch: refs/heads/1_2_X
Commit: d01ed120bbf99c92bdbeece7986ccf466785f5de
Parents: b88be93
Author: Francesco Chicchiriccò <il...@apache.org>
Authored: Mon Feb 16 14:54:12 2015 +0100
Committer: Francesco Chicchiriccò <il...@apache.org>
Committed: Mon Feb 16 14:54:12 2015 +0100

----------------------------------------------------------------------
 .../org/apache/syncope/core/workflow/WorkflowResult.java | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/syncope/blob/d01ed120/core/src/main/java/org/apache/syncope/core/workflow/WorkflowResult.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/syncope/core/workflow/WorkflowResult.java b/core/src/main/java/org/apache/syncope/core/workflow/WorkflowResult.java
index 429e794..0fa41cc 100644
--- a/core/src/main/java/org/apache/syncope/core/workflow/WorkflowResult.java
+++ b/core/src/main/java/org/apache/syncope/core/workflow/WorkflowResult.java
@@ -18,7 +18,7 @@
  */
 package org.apache.syncope.core.workflow;
 
-import java.util.Collections;
+import java.util.HashSet;
 import java.util.Set;
 import org.apache.commons.lang3.builder.EqualsBuilder;
 import org.apache.commons.lang3.builder.HashCodeBuilder;
@@ -37,13 +37,14 @@ public class WorkflowResult<T> {
     public WorkflowResult(final T result, final PropagationByResource propByRes, final String performedTask) {
         this.result = result;
         this.propByRes = propByRes;
-        this.performedTasks = Collections.singleton(performedTask);
+        this.performedTasks = new HashSet<String>();
+        this.performedTasks.add(performedTask);
     }
 
     public WorkflowResult(final T result, final PropagationByResource propByRes, final Set<String> performedTasks) {
         this.result = result;
         this.propByRes = propByRes;
-        this.performedTasks = performedTasks;
+        this.performedTasks = new HashSet<String>(performedTasks);
     }
 
     public T getResult() {
@@ -58,10 +59,6 @@ public class WorkflowResult<T> {
         return performedTasks;
     }
 
-    public void setPerformedTasks(final Set<String> performedTasks) {
-        this.performedTasks = performedTasks;
-    }
-
     public PropagationByResource getPropByRes() {
         return propByRes;
     }