Author: bvahdat
Date: Mon Nov 19 06:36:03 2012
New Revision: 1411076
URL: http://svn.apache.org/viewvc?rev=1411076&view=rev
Log:
Fixed the compilation error.
Modified:
camel/branches/camel-2.9.x/camel-core/src/main/java/org/apache/camel/model/ProcessorDefinition.java
Modified:
camel/branches/camel-2.9.x/camel-core/src/main/java/org/apache/camel/model/ProcessorDefinition.java
URL:
http://svn.apache.org/viewvc/camel/branches/camel-2.9.x/camel-core/src/main/java/org/apache/camel/model/ProcessorDefinition.java?rev=1411076&r1=1411075&r2=1411076&view=diff
==============================================================================
---
camel/branches/camel-2.9.x/camel-core/src/main/java/org/apache/camel/model/ProcessorDefinition.java
(original)
+++
camel/branches/camel-2.9.x/camel-core/src/main/java/org/apache/camel/model/ProcessorDefinition.java
Mon Nov 19 06:36:03 2012
@@ -493,9 +493,10 @@ public abstract class ProcessorDefinitio
// include additional properties which have the Camel placeholder QName
// and when the definition parameter is this (otherAttributes belong
to this)
if (processorDefinition != null &&
processorDefinition.getOtherAttributes() != null) {
- for (QName key :
processorDefinition.getOtherAttributes().keySet()) {
- if (Constants.PLACEHOLDER_QNAME.equals(key.getNamespaceURI()))
{
- String local = key.getLocalPart();
+ for (Object key :
processorDefinition.getOtherAttributes().keySet()) {
+ QName qname = (QName) key;
+ if
(Constants.PLACEHOLDER_QNAME.equals(qname.getNamespaceURI())) {
+ String local = qname.getLocalPart();
Object value =
processorDefinition.getOtherAttributes().get(key);
if (value != null && value instanceof String) {
// value must be enclosed with placeholder tokens