cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject [4/7] cxf git commit: [CXF-6227] Minor perf improvement
Date Mon, 09 Feb 2015 18:29:42 GMT
[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/c9c00bd5
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/c9c00bd5
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/c9c00bd5

Branch: refs/heads/2.7.x-fixes
Commit: c9c00bd58ae4fd2765b9eb20a529ba367f9ac716
Parents: 98547f0
Author: Alessio Soldano <asoldano@redhat.com>
Authored: Fri Jan 30 12:27:49 2015 +0100
Committer: Daniel Kulp <dkulp@apache.org>
Committed: Mon Feb 9 13:12:07 2015 -0500

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


http://git-wip-us.apache.org/repos/asf/cxf/blob/c9c00bd5/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