cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1423134 - /cxf/branches/2.6.x-fixes/api/src/main/java/org/apache/cxf/interceptor/URIMappingInterceptor.java
Date Mon, 17 Dec 2012 20:43:58 GMT
Author: dkulp
Date: Mon Dec 17 20:43:57 2012
New Revision: 1423134

URL: http://svn.apache.org/viewvc?rev=1423134&view=rev
Log:
Merged revisions 1423130 via  git cherry-pick from
https://svn.apache.org/repos/asf/cxf/trunk

........
  r1423130 | dkulp | 2012-12-17 15:38:39 -0500 (Mon, 17 Dec 2012) | 2 lines

  Slight performance optimization

........

Modified:
    cxf/branches/2.6.x-fixes/api/src/main/java/org/apache/cxf/interceptor/URIMappingInterceptor.java

Modified: cxf/branches/2.6.x-fixes/api/src/main/java/org/apache/cxf/interceptor/URIMappingInterceptor.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.6.x-fixes/api/src/main/java/org/apache/cxf/interceptor/URIMappingInterceptor.java?rev=1423134&r1=1423133&r2=1423134&view=diff
==============================================================================
--- cxf/branches/2.6.x-fixes/api/src/main/java/org/apache/cxf/interceptor/URIMappingInterceptor.java
(original)
+++ cxf/branches/2.6.x-fixes/api/src/main/java/org/apache/cxf/interceptor/URIMappingInterceptor.java
Mon Dec 17 20:43:57 2012
@@ -193,7 +193,8 @@ public class URIMappingInterceptor exten
         
         Class<?>[] types = method.getParameterTypes();        
         
-        for (String key : queries.keySet()) {
+        for (Map.Entry<String, String> ent : queries.entrySet()) {
+            String key = ent.getKey();
             MessagePartInfo inf = null;
             for (MessagePartInfo p : operation.getOperationInfo().getInput().getMessageParts())
{
                 if (p.getConcreteName().getLocalPart().equals(key)) {
@@ -226,10 +227,11 @@ public class URIMappingInterceptor exten
             // TODO check the parameter name here
             Object param = null;
                         
-            if (type.isPrimitive() && queries.get(key) != null) {
-                param = PrimitiveUtils.read(queries.get(key), type);
+            String val = ent.getValue();
+            if (type.isPrimitive() && val != null) {
+                param = PrimitiveUtils.read(val, type);
             } else {
-                param = readType(queries.get(key), type);
+                param = readType(val, type);
             }
             parameters.set(idx, param);
             



Mime
View raw message