cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From asold...@apache.org
Subject [1/4] cxf git commit: [CXF-6227] Minor perf improvement
Date Mon, 02 Feb 2015 09:54:52 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.0.x-fixes f5a7119bb -> f9921ef62


[CXF-6227] Minor perf improvement


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/c1f2b802
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/c1f2b802
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/c1f2b802

Branch: refs/heads/3.0.x-fixes
Commit: c1f2b802e9cb17470a14c94ca228853dbb66bf03
Parents: f5a7119
Author: Alessio Soldano <asoldano@redhat.com>
Authored: Fri Jan 30 12:27:49 2015 +0100
Committer: Alessio Soldano <asoldano@redhat.com>
Committed: Mon Feb 2 10:32:43 2015 +0100

----------------------------------------------------------------------
 .../cxf/binding/soap/interceptor/RPCOutInterceptor.java     | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/c1f2b802/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/RPCOutInterceptor.java
----------------------------------------------------------------------
diff --git a/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/RPCOutInterceptor.java
b/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/RPCOutInterceptor.java
index a6fcdcb..01649d6 100644
--- a/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/RPCOutInterceptor.java
+++ b/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/RPCOutInterceptor.java
@@ -145,9 +145,12 @@ public class RPCOutInterceptor extends AbstractOutDatabindingInterceptor
{
             body = boi.getOutput().getExtensor(SoapBody.class);
         } else {
             body = boi.getInput().getExtensor(SoapBody.class);
-        }        
-        if (body != null && !StringUtils.isEmpty(body.getNamespaceURI())) {
-            ns = body.getNamespaceURI();
+        }
+        if (body != null) {
+            final String nsUri = body.getNamespaceURI(); //do it once, as it might internally
use reflection...
+            if (!StringUtils.isEmpty(nsUri)) {
+                ns = nsUri;
+            }
         }
 
         nsStack.add(ns);


Mime
View raw message