cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t..@apache.org
Subject svn commit: r488925 - /incubator/cxf/trunk/rt/bindings/xml/src/main/java/org/apache/cxf/binding/xml/interceptor/XMLMessageInInterceptor.java
Date Wed, 20 Dec 2006 06:02:34 GMT
Author: tli
Date: Tue Dec 19 22:02:33 2006
New Revision: 488925

URL: http://svn.apache.org/viewvc?view=rev&rev=488925
Log:
fix a pmd error

Modified:
    incubator/cxf/trunk/rt/bindings/xml/src/main/java/org/apache/cxf/binding/xml/interceptor/XMLMessageInInterceptor.java

Modified: incubator/cxf/trunk/rt/bindings/xml/src/main/java/org/apache/cxf/binding/xml/interceptor/XMLMessageInInterceptor.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/bindings/xml/src/main/java/org/apache/cxf/binding/xml/interceptor/XMLMessageInInterceptor.java?view=diff&rev=488925&r1=488924&r2=488925
==============================================================================
--- incubator/cxf/trunk/rt/bindings/xml/src/main/java/org/apache/cxf/binding/xml/interceptor/XMLMessageInInterceptor.java
(original)
+++ incubator/cxf/trunk/rt/bindings/xml/src/main/java/org/apache/cxf/binding/xml/interceptor/XMLMessageInInterceptor.java
Tue Dec 19 22:02:33 2006
@@ -152,19 +152,17 @@
                 bmi = boi.getOutput();
             }
             XMLBindingMessageFormat xmf = bmi.getExtensor(XMLBindingMessageFormat.class);
-            if (xmf != null) {
-                if (xmf.getRootNode().getLocalPart().equals(startQName.getLocalPart())) {
-                    message.getExchange().put(BindingOperationInfo.class, boi);
-                    try {
-                        xsr.nextTag();
-                    } catch (XMLStreamException xse) {
-                        throw new Fault(new org.apache.cxf.common.i18n.Message("STAX_READ_EXC",
BUNDLE));
-                    }
-                    if (mi.getMessageParts().size() > 0) {
-                        return mi.getMessageParts().get(0);
-                    }
-                    break;
+            if (xmf != null && xmf.getRootNode().getLocalPart().equals(startQName.getLocalPart()))
{
+                message.getExchange().put(BindingOperationInfo.class, boi);
+                try {
+                    xsr.nextTag();
+                } catch (XMLStreamException xse) {
+                    throw new Fault(new org.apache.cxf.common.i18n.Message("STAX_READ_EXC",
BUNDLE));
                 }
+                if (mi.getMessageParts().size() > 0) {
+                    return mi.getMessageParts().get(0);
+                }
+                break;                
             }
         }
         return null;



Mime
View raw message