You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by dh...@apache.org on 2014/06/10 21:51:34 UTC

[06/35] git commit: Fixed argument substituion check to use exact type match

Fixed argument substituion check to use exact type match


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

Branch: refs/heads/master
Commit: ace29c891d5ae8eff7708f713ebdedd49a4733e1
Parents: 0932ed4
Author: Dhiraj Bokde <dh...@yahoo.com>
Authored: Wed May 28 14:19:08 2014 -0700
Committer: Dhiraj Bokde <dh...@yahoo.com>
Committed: Tue Jun 10 12:48:30 2014 -0700

----------------------------------------------------------------------
 .../apache/camel/util/component/ArgumentSubstitutionParser.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/ace29c89/camel-core/src/main/java/org/apache/camel/util/component/ArgumentSubstitutionParser.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/util/component/ArgumentSubstitutionParser.java b/camel-core/src/main/java/org/apache/camel/util/component/ArgumentSubstitutionParser.java
index 43f60e9..0ebf63c 100644
--- a/camel-core/src/main/java/org/apache/camel/util/component/ArgumentSubstitutionParser.java
+++ b/camel-core/src/main/java/org/apache/camel/util/component/ArgumentSubstitutionParser.java
@@ -74,7 +74,7 @@ public class ArgumentSubstitutionParser<T> extends ApiMethodParser<T> {
                             if (matcher.find()) {
                                 final List<NameReplacement> adapters = argEntry.getValue();
                                 for (NameReplacement adapter : adapters) {
-                                    if (adapter.type == null || adapter.type.isAssignableFrom(argument.getType())) {
+                                    if (adapter.type == null || adapter.type == argument.getType()) {
                                         argument = new Argument(matcher.replaceAll(adapter.replacement), argument.getType());
                                     }
                                 }