cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject svn commit: r691258 - /cxf/branches/2.1.x-fixes/rt/transports/jbi/src/main/java/org/apache/cxf/transport/jbi/JBIDestinationOutputStream.java
Date Tue, 02 Sep 2008 14:22:32 GMT
Author: ffang
Date: Tue Sep  2 07:22:31 2008
New Revision: 691258

URL: http://svn.apache.org/viewvc?rev=691258&view=rev
Log:
[CXF-1779]refactor to use Entry.Map avoiding hashable lookup

Modified:
    cxf/branches/2.1.x-fixes/rt/transports/jbi/src/main/java/org/apache/cxf/transport/jbi/JBIDestinationOutputStream.java

Modified: cxf/branches/2.1.x-fixes/rt/transports/jbi/src/main/java/org/apache/cxf/transport/jbi/JBIDestinationOutputStream.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.1.x-fixes/rt/transports/jbi/src/main/java/org/apache/cxf/transport/jbi/JBIDestinationOutputStream.java?rev=691258&r1=691257&r2=691258&view=diff
==============================================================================
--- cxf/branches/2.1.x-fixes/rt/transports/jbi/src/main/java/org/apache/cxf/transport/jbi/JBIDestinationOutputStream.java
(original)
+++ cxf/branches/2.1.x-fixes/rt/transports/jbi/src/main/java/org/apache/cxf/transport/jbi/JBIDestinationOutputStream.java
Tue Sep  2 07:22:31 2008
@@ -22,7 +22,7 @@
 import java.io.IOException;
 import java.io.InputStream;
 import java.io.Serializable;
-import java.util.Set;
+import java.util.Map;
 import java.util.logging.Level;
 import java.util.logging.Logger;
 
@@ -112,12 +112,14 @@
                         }
                     }
                     //copy properties
-                    Set<String> keys = inMessage.keySet();
-                    for (String key : keys) {
-                        if (inMessage.get(key) instanceof Serializable) {
-                            msg.setProperty(key, inMessage.get(key));
+                    
+                    for (Map.Entry<String, Object> ent : inMessage.entrySet()) {
+                        if (ent.getValue() instanceof Serializable) {
+                            msg.setProperty(ent.getKey(), ent.getValue());
                         }
                     }
+
+
                     //copy contents
                     msg.setContent(new DOMSource(doc));
                     xchng.setMessage(msg, "out");



Mime
View raw message