You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ni...@apache.org on 2014/02/17 09:06:05 UTC
[2/2] git commit: CAMEL-7155 Fixed the issue of StringHelper
CAMEL-7155 Fixed the issue of StringHelper
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/7b1dba9a
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/7b1dba9a
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/7b1dba9a
Branch: refs/heads/master
Commit: 7b1dba9a494ca50e2fde047544a675df6c702e54
Parents: 254888d
Author: Willem Jiang <wi...@gmail.com>
Authored: Mon Feb 17 16:05:30 2014 +0800
Committer: Willem Jiang <wi...@gmail.com>
Committed: Mon Feb 17 16:05:30 2014 +0800
----------------------------------------------------------------------
camel-core/src/main/java/org/apache/camel/util/StringHelper.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/7b1dba9a/camel-core/src/main/java/org/apache/camel/util/StringHelper.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/util/StringHelper.java b/camel-core/src/main/java/org/apache/camel/util/StringHelper.java
index 54579af..46bdf8c 100644
--- a/camel-core/src/main/java/org/apache/camel/util/StringHelper.java
+++ b/camel-core/src/main/java/org/apache/camel/util/StringHelper.java
@@ -154,7 +154,8 @@ public final class StringHelper {
return false;
}
- if (expression.indexOf("${") >= 0) {
+ // for the simple language the expression start token could be "${"
+ if ("simple".equalsIgnoreCase(language) && expression.indexOf("${") >= 0) {
return true;
}