cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r796780 - /cxf/trunk/rt/transports/jbi/src/main/java/org/apache/cxf/transport/jbi/JBIConduitOutputStream.java
Date Wed, 22 Jul 2009 16:20:11 GMT
Author: dkulp
Date: Wed Jul 22 16:20:11 2009
New Revision: 796780

URL: http://svn.apache.org/viewvc?rev=796780&view=rev
Log:
Deal with unchecked casts

Modified:
    cxf/trunk/rt/transports/jbi/src/main/java/org/apache/cxf/transport/jbi/JBIConduitOutputStream.java

Modified: cxf/trunk/rt/transports/jbi/src/main/java/org/apache/cxf/transport/jbi/JBIConduitOutputStream.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/transports/jbi/src/main/java/org/apache/cxf/transport/jbi/JBIConduitOutputStream.java?rev=796780&r1=796779&r2=796780&view=diff
==============================================================================
--- cxf/trunk/rt/transports/jbi/src/main/java/org/apache/cxf/transport/jbi/JBIConduitOutputStream.java
(original)
+++ cxf/trunk/rt/transports/jbi/src/main/java/org/apache/cxf/transport/jbi/JBIConduitOutputStream.java
Wed Jul 22 16:20:11 2009
@@ -42,6 +42,7 @@
 
 import org.apache.cxf.Bus;
 import org.apache.cxf.common.logging.LogUtils;
+import org.apache.cxf.helpers.CastUtils;
 import org.apache.cxf.io.CachedOutputStream;
 import org.apache.cxf.message.Exchange;
 import org.apache.cxf.message.Message;
@@ -129,10 +130,11 @@
                 xchng.setOperation(bop.getName());
                 //copy context
                 Map<String, Object> invocationContext = 
-                    (Map<String, Object>) message.get(Message.INVOCATION_CONTEXT);
+                    CastUtils.cast((Map)message.get(Message.INVOCATION_CONTEXT));
                 if (invocationContext != null) {
-                    for (Map.Entry<String, Object> ent : ((Map<String, Object>)
invocationContext
-                            .get("RequestContext")).entrySet()) {
+                    for (Map.Entry<String, Object> ent 
+                        : CastUtils.cast((Map)invocationContext.get("RequestContext"), 
+                                             String.class, Object.class).entrySet()) {
                         // check if value is Serializable, and if value is Map
                         // or collection,
                         // just exclude it since the entry of it may not be



Mime
View raw message