cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From asold...@apache.org
Subject [1/3] cxf git commit: [CXF-6227] Minor perf improvement
Date Fri, 30 Jan 2015 17:05:26 GMT
Repository: cxf
Updated Branches:
  refs/heads/master ea4a8deb4 -> 5a9a2a098


[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/eb9e13e2
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/eb9e13e2
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/eb9e13e2

Branch: refs/heads/master
Commit: eb9e13e2dd4a22b1d777095a5d92139829d550b8
Parents: ea4a8de
Author: Alessio Soldano <asoldano@redhat.com>
Authored: Fri Jan 30 12:27:49 2015 +0100
Committer: Alessio Soldano <asoldano@redhat.com>
Committed: Fri Jan 30 12:27:49 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/eb9e13e2/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