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 2013/08/31 12:56:32 UTC

[5/9] git commit: CAMEL-6691: Fixed seda when using queueSize not comparing correctly.

CAMEL-6691: Fixed seda when using queueSize not comparing correctly.


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

Branch: refs/heads/camel-2.12.x
Commit: 2e64834b96111fb5691de08dd59e0f7aa5433326
Parents: d78ee9e
Author: Claus Ibsen <da...@apache.org>
Authored: Sat Aug 31 12:17:04 2013 +0200
Committer: Claus Ibsen <da...@apache.org>
Committed: Sat Aug 31 12:52:57 2013 +0200

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


http://git-wip-us.apache.org/repos/asf/camel/blob/2e64834b/camel-core/src/main/java/org/apache/camel/component/seda/SedaComponent.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/component/seda/SedaComponent.java b/camel-core/src/main/java/org/apache/camel/component/seda/SedaComponent.java
index 94623f8..74e6278 100644
--- a/camel-core/src/main/java/org/apache/camel/component/seda/SedaComponent.java
+++ b/camel-core/src/main/java/org/apache/camel/component/seda/SedaComponent.java
@@ -89,7 +89,7 @@ public class SedaComponent extends UriEndpointComponent {
         if (ref != null) {
 
             // if the given size is not provided, we just use the existing queue as is
-            if (size != null && ref.getSize() != size) {
+            if (size != null && !size.equals(ref.getSize())) {
                 // there is already a queue, so make sure the size matches
                 throw new IllegalArgumentException("Cannot use existing queue " + key + " as the existing queue size "
                         + (ref.getSize() != null ? ref.getSize() : Integer.MAX_VALUE) + " does not match given queue size " + size);