You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2017/05/29 12:40:23 UTC

camel git commit: Optimise - No need to create new hashmap when getting the consumers

Repository: camel
Updated Branches:
  refs/heads/master 003dc4042 -> 9af26ef71


Optimise - No need to create new hashmap when getting the consumers


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

Branch: refs/heads/master
Commit: 9af26ef7123d8575d9bf1c84e0e5e3fbd7c4090c
Parents: 003dc40
Author: Claus Ibsen <da...@apache.org>
Authored: Mon May 29 14:40:11 2017 +0200
Committer: Claus Ibsen <da...@apache.org>
Committed: Mon May 29 14:40:11 2017 +0200

----------------------------------------------------------------------
 .../main/java/org/apache/camel/component/seda/SedaEndpoint.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/9af26ef7/camel-core/src/main/java/org/apache/camel/component/seda/SedaEndpoint.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/component/seda/SedaEndpoint.java b/camel-core/src/main/java/org/apache/camel/component/seda/SedaEndpoint.java
index f168cd0..f365b99 100644
--- a/camel-core/src/main/java/org/apache/camel/component/seda/SedaEndpoint.java
+++ b/camel-core/src/main/java/org/apache/camel/component/seda/SedaEndpoint.java
@@ -431,7 +431,7 @@ public class SedaEndpoint extends DefaultEndpoint implements AsyncEndpoint, Brow
      * Returns the current active consumers on this endpoint
      */
     public Set<SedaConsumer> getConsumers() {
-        return new HashSet<SedaConsumer>(consumers);
+        return consumers;
     }
 
     /**