camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rom...@apache.org
Subject svn commit: r632425 - /activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/util/ExchangeHelper.java
Date Fri, 29 Feb 2008 20:25:00 GMT
Author: romkal
Date: Fri Feb 29 12:24:56 2008
New Revision: 632425

URL: http://svn.apache.org/viewvc?rev=632425&view=rev
Log:
CAMEL-343 : Every change in properties is propagated back when results are copied

Modified:
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/util/ExchangeHelper.java

Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/util/ExchangeHelper.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/util/ExchangeHelper.java?rev=632425&r1=632424&r2=632425&view=diff
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/util/ExchangeHelper.java
(original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/util/ExchangeHelper.java
Fri Feb 29 12:24:56 2008
@@ -189,9 +189,8 @@
                 // so lets assume the last IN is the OUT
                 result.getOut(true).copyFrom(source.getIn());
             }
-            Map<String, Object> propertiesToCopy = new HashMap<String, Object>(source.getProperties());
-            propertiesToCopy.entrySet().removeAll(result.getProperties().entrySet());
-            result.getProperties().putAll(propertiesToCopy);
+            result.getProperties().clear();
+            result.getProperties().putAll(source.getProperties());
         }
     }
 



Mime
View raw message