Return-Path: Delivered-To: apmail-cxf-commits-archive@www.apache.org Received: (qmail 25695 invoked from network); 22 Jul 2009 16:19:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Jul 2009 16:19:31 -0000 Received: (qmail 43270 invoked by uid 500); 22 Jul 2009 16:20:36 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 43198 invoked by uid 500); 22 Jul 2009 16:20:35 -0000 Mailing-List: contact commits-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list commits@cxf.apache.org Received: (qmail 43189 invoked by uid 99); 22 Jul 2009 16:20:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jul 2009 16:20:35 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jul 2009 16:20:32 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id C78B22388895; Wed, 22 Jul 2009 16:20:11 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@cxf.apache.org From: dkulp@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090722162011.C78B22388895@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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 invocationContext = - (Map) message.get(Message.INVOCATION_CONTEXT); + CastUtils.cast((Map)message.get(Message.INVOCATION_CONTEXT)); if (invocationContext != null) { - for (Map.Entry ent : ((Map) invocationContext - .get("RequestContext")).entrySet()) { + for (Map.Entry 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